If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Numeric to time format

Started by esanray, 24 Nov 2011 11:51:21 PM

Previous topic - Next topic

esanray


Numeric to time format
1500 to 15:00


HalfBloodPrince

First convert time column  it to varchar using cast( [Time], varchar(10)) then

create new calculation as  new time as  cast(substring([Text Time],1,2)+':'+substring([Text Time],3,4)+':00',time)

thanks,