Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Insert date in dd/mm/yy format

Author  Topic 

globemast
Starting Member

32 Posts

Posted - 2003-09-07 : 18:06:17
Hello i am building a site using ASP and i want to insert some dates to a table in my SQL server.

Now when i insert the date in the DB using ASP the date appears in the format mm/dd/yy .

How can i change the format to dd//mm/yy (English standard)???

P.S i get the date in ASP using the DATE() function

Thanx

nr
SQLTeam MVY

12543 Posts

Posted - 2003-09-08 : 02:18:59
What do you mean?
The date in a datetime field is a decimal number - it gets converted from strings for input and converted by the app for presentation.

To inut a date yyyymmdd is best. For presentation just use the formatting functions available.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -