B
Brian H
Sanity check needed:
I have a listbox that holds a bunch of dates. I'm looking to format these
based on user settings; either a 12 or 24 hour format. I stumbled on:
http://msdn.microsoft.com/library/d...globalizationdatetimeformatinfoclasstopic.asp
Fantastic reference. It seems the "g" format pattern is ideal for my 12
hour format, producing (only minute accuracy needed):
1/3/2002 12:00 AM
But I don't see anything handy for a 24 hour format, such as:
1/3/2002 00:00
The key to this is that I want the date to support month/day/year, as well
as day/month/year. The simple format pattern ("g") will do this fine, but
I'm not sure how to do this easily for a 24 hour format. Do I need to
concatenate a ShortDateString with an HH:mm string?
Thanks for the help,
Brian
I have a listbox that holds a bunch of dates. I'm looking to format these
based on user settings; either a 12 or 24 hour format. I stumbled on:
http://msdn.microsoft.com/library/d...globalizationdatetimeformatinfoclasstopic.asp
Fantastic reference. It seems the "g" format pattern is ideal for my 12
hour format, producing (only minute accuracy needed):
1/3/2002 12:00 AM
But I don't see anything handy for a 24 hour format, such as:
1/3/2002 00:00
The key to this is that I want the date to support month/day/year, as well
as day/month/year. The simple format pattern ("g") will do this fine, but
I'm not sure how to do this easily for a 24 hour format. Do I need to
concatenate a ShortDateString with an HH:mm string?
Thanks for the help,
Brian