Thanks Tim... so quickly we forget.

-----Original Message-----
From: Tim McAuliffe [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 16 February 2005 10:08 AM
To: CFAussie Mailing List
Subject: [cfaussie] Re: validating dates and passing them to the
database


Hi Jason,

You can use the LSParseDateTime() function to process a d/m/y date the
right way. Just make sure that the locale on your server is set to
'English (Australian)'.

You can check the locale with the GetLocale() function and change it,
either through the OS or via the SetLocale() function.

HTH

Tim

> Got some problems with dates...
>  
> I have a form that is requesting dates in the format dd/mm/yyyy.  I want
> to do the following:
>  
> 1. I want to validate server side that they are enterring a valid date in
> the format above
> 2. I want to make sure that when inserted into the database that the
> months and days don't get swapped around
>  
> Any help would be great.
>  
> Thanks Jason.

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
[EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to