Skip to content

DateTimePicker date and time format #2149

Answered by VPKSoft
VPKSoft asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,
Setting the current thread UI locale, as defined below solved the formatting issue:

System.Threading.Thread.CurrentThread.CurrentUICulture = new CultureInfo("fi-FI");

So I'll just make it a setting or clone the value from:

System.Threading.Thread.CurrentThread.CurrentUICulture = System.Threading.Thread.CurrentThread.CurrentCulture;

Probably the latter is a better option.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@VPKSoft
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by VPKSoft
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants