i have a DateTime which is in AM/PM format .
I want to convert it to 24h format , how can i do it?
thanks.
i have a DateTime which is in AM/PM format . I want to convert
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Date and times are not internally stored with any format in mind.
When you want to display the date/time, you use a format string on the
ToStringmethod of the object. There are standard and custom format strings.For 24 hours use: