Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi .
I have got a Table in SQL Server 200 . This Table has a column .
In this column save a int value for example 1394011615
They use it for DateTime .
I want to change it to DateTime in c# .
Can you help me ?
Posted
Comments
Ramug10 5-Mar-14 4:52am    
1394011615 this value exceeds integer range right?
Richard MacCutchan 5-Mar-14 4:54am    
Why not use the SQL DateTime type?
lukeer 5-Mar-14 4:56am    
How is that formatted?
Is it the number of seconds since arbitrary date X?
Is it YYYYMMDDHH?
Amalraj Ramesh 5-Mar-14 11:56am    
1394011615 = what date??

USE convert.toDateTime(TOUR VALUE);
 
Share this answer
 
(Convert(DateTime,'05032014',112))
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900