Page 1 of 1

Need Help in Convert DSJobStartTimeStamp to integer

Posted: Fri Aug 26, 2011 12:48 am
by mac4rfree85
Hi Guys,

I need to convert DSJobStartTimeStamp to integer.

Currently am using the below code to convert it.

Code: Select all

Convert(' ','',Convert(':','',Convert('-','',TimestampToString(DSJobStartTimeStamp,"%yyyy-%mm-%dd %hh:%nn:%ss"))))
Is there any better way to do it?

Cheers!!!!

Posted: Fri Aug 26, 2011 1:52 am
by ray.wurlod
You only need one Convert() function.

Code: Select all

Convert("-/:. ", "", TimestampToString(DSJobStartTimestamp, "%yyyy-%mm-%dd"))

Posted: Fri Aug 26, 2011 2:53 am
by mac4rfree85
Thanks Ray, thats all i am looking at :)