
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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 31, 2013, 9:59 PM EDT
SELECT MAINSERNO, MONO, ITNO,
TO_CHAR (TIMESTAMP, 'YYYY-MM-DD HH:MI:SS') as DateTime
Regards,
Iftikar
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 31, 2013, 7:49 PM EDT
Try like this
CONVERT(varchar(19),TIMESTAMP,120) as TimeStamp
Regards,
Iftikar
TAN WhoAMIRank #5,790 · 286 reputationPosted Jul 31, 2013, 8:50 PM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 31, 2013, 8:54 PM EDT
Regards,
Iftikar
TAN WhoAMIRank #5,790 · 286 reputationPosted Jul 31, 2013, 9:48 PM EDT
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 31, 2013, 9:51 PM EDT
SELECT MAINSERNO, MONO, ITNO,TO_TIMESTAMP(TIMESTAMP,'YYYY-MM-DD HH24:MI:SS') as TimeStamp
FROM PPL_PRODUCT_TESTID2
TAN WhoAMIRank #5,790 · 286 reputationPosted Jul 31, 2013, 9:56 PM EDT