Okay, I have a Label on my program that gets updated with the time on a timer like so:
Label1.Text = DateTime.Now.ToString("M/d/yyyy h:mm tt", System.Globalization.CultureInfo.CreateSpecificCulture("en-US"));
It should print out (and does when hovering over the variable in Visual Studio):
12/15/2010 8:41 PM
But instead prints out:
PM 8:41 12/15/2010
This is the only place in my code that the label is getting changed. It works in windows XP but now I'm using my code in windows 7, it gets jacked up. Please help me. I'm unsure as to why this is going on.
Thanks for any help!
似乎RightToLeft
设置为true
- 将其更改为false
。
Argh, RightToLeft
setting was true. Don't know why but it was. Thanks @RedDeckWins!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.