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.
Author |
Topic |
ashley.sql
Constraint Violating Yak Guru
299 Posts |
Posted - 2007-11-02 : 22:31:00
|
I have a file which has date field in asian formatDAY-MONTH-YEAR (21/11/2007)How do i convert this to 11/21/2007 when I am entering the data in my sql server. I know my server will not even let me enter 21/11/2007 in the table with datetime field.-----------------------------------------------------------------------------------------------Ashley Rhodes |
|
dinakar
Master Smack Fu Yak Hacker
2507 Posts |
Posted - 2007-11-02 : 22:37:05
|
you can use SET DATEFORMAT DMY.Dinakar Nethi************************Life is short. Enjoy it.************************http://weblogs.sqlteam.com/dinakar/ |
 |
|
ashley.sql
Constraint Violating Yak Guru
299 Posts |
Posted - 2007-11-02 : 22:43:55
|
select convert(char, getdate(), 102)-----------------------------------------------------------------------------------------------Ashley Rhodes |
 |
|
ashley.sql
Constraint Violating Yak Guru
299 Posts |
Posted - 2007-11-02 : 22:44:12
|
select convert(char, getdate(), 104)-----------------------------------------------------------------------------------------------Ashley Rhodes |
 |
|
|
|
|