
however, in my LINQPAD 4, I am able to retrieve the TIMESTAMP in MM/DD/YYYY hh:mm format, as below:

I would want my LINQPAD 4 TIMESTAMP to be the same format as the Microsoft Query, is that possible?


Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Iftikar HussainPosted Aug 1, 2013, 1:59 AM
SELECT MAINSERNO, MONO, ITNO,
TO_CHAR (TIMESTAMP, 'YYYY-MM-DD HH:MI:SS') as DateTime
Regards,
Iftikar
TAN WhoAMIPosted Aug 1, 2013, 1:56 AM
Sanjeeb LenkaPosted Aug 1, 2013, 1:51 AM
SELECT MAINSERNO, MONO, ITNO,TO_TIMESTAMP(TIMESTAMP,'YYYY-MM-DD HH24:MI:SS') as TimeStamp
FROM PPL_PRODUCT_TESTID2
TAN WhoAMIPosted Aug 1, 2013, 1:48 AM
Iftikar HussainPosted Aug 1, 2013, 12:54 AM
Regards,
Iftikar
TAN WhoAMIPosted Aug 1, 2013, 12:50 AM
Iftikar HussainPosted Jul 31, 2013, 11:49 PM
Try like this
CONVERT(varchar(19),TIMESTAMP,120) as TimeStamp
Regards,
Iftikar