Store Datetime in sql Server
02/12/2014 09:30 Pm---dd/mm/yyyy hh:mm tt
and get this date from Sql server to label in asp
i want query for both insert and select
thank u
advance wish u happy new year
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
Manish Kumar ChoudharyRank #339 · 7.4K reputationPosted Jan 2, 2015, 6:02 PM EST
Hi muthukumar,
No need to convert date format while inserting a data in sql server. And use normal select query and with date column use
lbl1.Text=.ToString("dd/mm/yyyy hh:mm tt");
Front end it will convert the date format and display it in your label.
Murugesh P85 reputationPosted Jan 2, 2015, 3:12 AM EST