Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
Dan K. #1
Date calculations from FORM field
Hello everyone,
I am trying to build a site for my company that to replace our current leave
request database. This is how I would like the site to work. I would like an
end user to select the Friday of the week they are requesting time off. This
selection would be done using the Flash FORM datefield. I would then like to
have Monday - Friday's dates calculated automatically based on the Friday
date. What I am not sure is how to do the calculations and set the results
into FORM fields so when the record is submitted all of the dates get written
into the database. Any help would be greatly appreciated.
Thanks in advance.
Daniel Krajc
Dan K. Guest
-
Changing to British date form a US style (text) field
Hello all I have a document tracking database set up in FM Pro. One of the fields I use is a "Due Date" field which is scripted to add two days... -
date & time in form field
I want to put the current date and time into a form field which will them be submitted to a database. Is this possible? If so, what code should I... -
date/time field from access 2000 db getting -1 in textbox on form
I am stuck in using Access 2000 with on Windows 2000 server. I get a negitive 1 for a value. My code $DB_Conn = new... -
Calculations with date
Hello all, I am looking for an advice or suggestion in this task: I do have a Perl script which contains 2 variables ($low, $high). The value... -
Autofill current date in field on form
Need a field to autofill the current date on a form. The user will be filling in one field with a control number and the date field will be the... -
jdeline #2
Re: Date calculations from FORM field
The code below should do the date calculation for you. Untested.
<!--- fridayDate contains the user-supplied Friday date --->
<CFSET dataList = "">
<CFLOOP INDEX="i" FROM="-4" TO="-1">
<CFSET ListAppend(dateList, DateFormat(DateAdd("d", i, fridayDate),
"mm/dd/yy"))>
</CFLOOP>
jdeline Guest



Reply With Quote

