Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: SQL Server
Expertise: Beginner
Jul 8, 1999

Data Type for Time

Question:
What is the data type for time?

Example: 8:45 am

Answer:
What you really have is the tail end of a datetime data type. You can get it back this way by asking for this:

select convert(char,getdate(),8)
Hope this helps.
DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap