yes what returned can be formatted using HH to display value in 24hrs,
but is there a way to make this the default returned value.?
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.
This depends on which culture your program is running on. Check the System.Threading.Thread.CurrentThread.CurrentCulture and CurrentUICulture properties and set these accordingly.
The CultureInfo type, among other tings, tells how numbers and dates are formatted. The DateTimeFormat property is what you are interested in. If you need a specialized culture you can create one and set its DateTimeFormat to whatever you need, and then assign it to the CurrentCulture property.
Most probably you just want to select a pre-defined culture. Read more here: http://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo.aspx