i want to convert 30/07/2013 date into datetime format
How to convert string date into datetime fromat
How to convert string date into datetime fromat
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
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 29, 2013, 10:39 PM EDT
Try like this
select CONVERT(datetime,'30/07/2013',103)
Regards,
Iftikar
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 29, 2013, 10:53 PM EDT
SELECT convert(datetime, '30/07/2013', 103)
if date is in mm/dd/yyyy format
select CONVERT(date,'07/30/2013',101)
if date is in yyyy/mm/dd
SELECT convert(datetime, '2013/07/30', 120)