System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern="DD/MM/YYYY";
System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortTimePattern ="hh:mm tt";
I am overriding the Date and time format for a culture in thread by doing this we will get Date
and Time
in given format in DateTime.Now
.
I am able to get preferred format for Date
same thing not working for Time.
How to get time in preferred format using above culture threading.