Question
DoDateTime YYYY/MM/DD
Hi all, i would be grateful for any help with this little
date input query. i'm developing in ASP against an MS SQL database,
I'm also using the Expert Calendar extension from an extension from
Kaosweaver which on record insert formats the date in a YYYY/MM/DD
format which is great and works excellently.
The problem that i have, is that i have an update record page, which returns the date entered to a text area, however it returns the date in a DD/MM/YYYY format, which unfortunatly causes a "The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value." Error on insert unless the user changes the date (as my database is expecting the value in YYYY/MM/DD format)
I've tried to change the date format using Dreeamweavers pre-built DoDate functions, however can not find one that returns the date in the following format YYYY/MM/DD
Please can you advise as to how to change this, i'm guessing that it has something to do with the values 2, 2070 listed below?
<%= DoDateTime((Recordset1.Fields.Item("PCCCalendarDate").Value), 2, 2070) %>
Thanks for your help
The problem that i have, is that i have an update record page, which returns the date entered to a text area, however it returns the date in a DD/MM/YYYY format, which unfortunatly causes a "The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value." Error on insert unless the user changes the date (as my database is expecting the value in YYYY/MM/DD format)
I've tried to change the date format using Dreeamweavers pre-built DoDate functions, however can not find one that returns the date in the following format YYYY/MM/DD
Please can you advise as to how to change this, i'm guessing that it has something to do with the values 2, 2070 listed below?
<%= DoDateTime((Recordset1.Fields.Item("PCCCalendarDate").Value), 2, 2070) %>
Thanks for your help
