DateTimeControl date format
-
Hi there. I'm trying to set the format of my DateTimeControls to yyyy/mm/dd but the only method I can find is through the localeid property. The only locales that use yyyy/mm/dd as their primary format are non-english, so they don't help me much. The government standard in Canada (where I am) is yyyy/mm/dd but as a nation all three primary formats are used. Is there any way to select which format I want to use, or am I stuck with Microsoft's default, dd/mm/yyyy? Thanks ahead of time for any assistance!
-
Hi there. I'm trying to set the format of my DateTimeControls to yyyy/mm/dd but the only method I can find is through the localeid property. The only locales that use yyyy/mm/dd as their primary format are non-english, so they don't help me much. The government standard in Canada (where I am) is yyyy/mm/dd but as a nation all three primary formats are used. Is there any way to select which format I want to use, or am I stuck with Microsoft's default, dd/mm/yyyy? Thanks ahead of time for any assistance!
Maybe you need CDateTimeCtrl::SetFormat().
-
Maybe you need CDateTimeCtrl::SetFormat().
-
Hi there. I'm trying to set the format of my DateTimeControls to yyyy/mm/dd but the only method I can find is through the localeid property. The only locales that use yyyy/mm/dd as their primary format are non-english, so they don't help me much. The government standard in Canada (where I am) is yyyy/mm/dd but as a nation all three primary formats are used. Is there any way to select which format I want to use, or am I stuck with Microsoft's default, dd/mm/yyyy? Thanks ahead of time for any assistance!
I have an mfc dialog containing a DateTimePicker, I have assigned it the variable "picker", I have formated the dates to year month day with this command ...
picker.SetFormat("yyyymmdd");
-
See here.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius