my type for date in the database is datetime and format of the datetime i am getting is 2/21/2011 12:00:00 AM .how can i convert this into 24 hour format.
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.
From the comments I would suggest that you may have a mis-understanding.
After you enter datetime data into a database, it’s not stored as text, it’s not stored as AM/PM or 24 hour, it’s its own type. Only when an application converts it for display on screen does the difference materialise. This is an artefact of the application, not the database.
Are you able to eloborate on why this is an issue to you? How is the data being used?
– Are you going to be running any code?
– Are you copying it to Excell?
– Are you just basking in it’s glory?