Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

convert time to 24 hour clock

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Anyone know if Sybase has a function to do this? For example 2:00 PM = 1400

Thanks in advance
 
Hiya,

The way that Sybase shows times is dependant on the language that it is set to. If you look in the Sybase manual, it should show you all the different ways that it can express it.

Tim
 
Hi,

Use this

select convert(char(2),getdate(),8)+right(convert(char(5),getdate(),8),2)


It works for sure

RD
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top