Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cfupdate and date fields

Status
Not open for further replies.

sevex

Programmer
Joined
Sep 18, 2001
Messages
74
Location
CA
I have an update record style form that contains a date field made up of three drop-down lists, month, day and year (naturally)

I'm using cfupdate to update the record, and listing all of the fields that are to be updated. My date field is called "Opening_Date" and it's in there. Before the cfupdate tag I have:

<cfset Opening_Date = createODBCdate(CreateDate(#year#, #month#, #day#))>

to try and create a date from the fields and have it use it. It updates every other field, but not my date field. Thanks in advance for any ideas or suggestions.
 
Hi,


try :

<cfset Opening_Date = dateFormate(CreateDate(#year#, #month#, #day#), &quot;mm dd yyyy&quot;)>


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top