Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
in sql server if we give data type as datetime then in open table option how we write it
Posted
Updated 16-Feb-12 5:09am
v3
Comments
_Zorro_ 16-Feb-12 11:08am    
Please rephrase your question

Dear Friend,

You can write the datetime in this format for open table in sql server


[YYYY][MM][DD][HH]{MM][SS][FFF]

where YYYY=Year
MM=Month
DD=Date
HH=Hour
MM=Minutes
SS=Seconds
FFF=Fractional part of seconds


For more details please visit this link:-

http://msdn.microsoft.com/en-us/library/ms187819.aspx[^]

If it helps you out then don't forget to mark this as your answer.

Thanks
 
Share this answer
 
you can simply write date as 12-jan-2012 and it will automatically take the default time 12:00.
 
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