Displaying and updating date formats in SQL (ASP)
Hi,
I'm using MS SQL server 2005 with ASP VB. I have a table in a database with a date column, that is set to datetime type.
I have a page to insert a record into the table, and in the page form, one of the fields is a date field which defaults to tdays date using <%= date %> which works fine. When called, the page displays todays date, in the format DD/MM/YYYY which is great. But the form inserts the record with the date format MM/DD/YYYY.
But I also have an edit page for those records. And if I edit the record, it switches the date back to DD/MM/YYYY format. How can I ensure consistent date format in DD/MM/YYYY?
Many thanks
