nelliott
asked on
UK Dates
Hi
I'm using a MySQL database and I'm trying to insert a date into it using a web form in the format DD/MM/YY (UK style) 01/11/03 - 1st Novmeber 03.
When I insert a date using a form I use the following code:
<cfqueryparam value="#FORM.APPLY_BY#" cfsqltype="cf_sql_timestam p">
But when I display the value on a web page, I find that the database has inserted my date as MM/DD/YY (US Style) 01/11/03 - 11th January 03.
How can I change the insert code, so that it can be inserted DD/MM/YY?
Thanks in advance
I'm using a MySQL database and I'm trying to insert a date into it using a web form in the format DD/MM/YY (UK style) 01/11/03 - 1st Novmeber 03.
When I insert a date using a form I use the following code:
<cfqueryparam value="#FORM.APPLY_BY#" cfsqltype="cf_sql_timestam
But when I display the value on a web page, I find that the database has inserted my date as MM/DD/YY (US Style) 01/11/03 - 11th January 03.
How can I change the insert code, so that it can be inserted DD/MM/YY?
Thanks in advance
ASKER
I already am. I'm displaying it as so:
#LSDateFormat(jobs.APPLY_B Y,'DDDD, MMMM DD YYYY')#
It's the entering the data I need to get sorted, not the displaying I think....
#LSDateFormat(jobs.APPLY_B
It's the entering the data I need to get sorted, not the displaying I think....
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
let the date will be inserted in the default database format !
change the display when u r displaying it on the browser - using dateformat()
OR chnage the default date settings for ur DB !
HTH
K'Rgds
Anand
change the display when u r displaying it on the browser - using dateformat()
OR chnage the default date settings for ur DB !
HTH
K'Rgds
Anand
OK by me :-)
Mause