declare @dates table (orig varchar(50) ,parsed datetime)
SET DATEFORMAT ydm;
insert into @dates
select '2008-09-01','2008-09-01'
SET DATEFORMAT ymd;
insert into @dates
select '2008-09-01','2008-09-01'
select * from @dates
Recent Posts
Showing posts with label default. Show all posts
Showing posts with label default. Show all posts
Change default datetime format in SQL Server
Subscribe to:
Posts (Atom)