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.

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 Date format

Author  Topic 

Smiely.Kar
Starting Member

3 Posts

Posted - 2011-05-05 : 15:12:52
Can I covert date format into 0:HHmm/dd for in SQL ? How ?

Please help,
smiely

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2011-05-05 : 23:55:03
yes. use datepart() to get the month or date and then convert to string before concatenate


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

Jahanzaib
Posting Yak Master

115 Posts

Posted - 2011-05-06 : 07:49:21
http://msdn.microsoft.com/en-us/library/ms187928.aspx

check this link for date formats

Regards,

Syed Jahanzaib Bin Hassan
MCTS,MCITP,OCA,OCP,OCE,SCJP,IBMCDBA

My Blog
www.aureus-salah.com
Go to Top of Page
   

- Advertisement -