This content has been marked as final. Show 7 replies
Use the left, mid, right, and createdate functions for the date formfield.
For the time one, are you really asking your users to type out the number of seconds?
are there any tutorials on create date left mid right?
Usage is described in the cfml reference manual. If you don't have one, the internet does.
To find a tag, google <cftagname> x, where x is the cold fusion version you want. To find a function, google coldfusion function-name x. I gave you 4 functions. createdate is all one word.
ok i have worked out the issue!!
the date is converting fine now, but the time is not, only the hour is correct so if my user selects "12/02/2008" and "16:48:00"
the output is "12/02/2008" and "16:00:00"
any ideas how to get the actual whole time to convert my code is below
<CFSET smsDate = CreateDate(form.year, form.month, form.day)>
<cfset SMS_Time = '#form.SMS_Time#'>
There's a createdatetime function that's likely to work.
By the way, what happens if your form values are:
year = 2008
month = 6
day = 31
ok thanks Dan, that date is not valid so users woulndt be able to select it from the calendar.
createdatetime would be good just not sure where to set the time?
before the script to convert to server time?
Hi can someone please help me with this?
i need the date and the time converting not just the date as it is now?