c# - Converting datetime from UICulture -
i have sql db various datetime fields stored in pst time zone. users multiple regions across world use db display data.
i need able convert sql db datetimes specific settings, hope system.threading.thread.currentthread.currentuiculture
.
my question is, how convert datetime current user's locale in c# using currentuiculture variable.
maybe tostring?
datetime date=new datetime(); var str = date.tostring(system.threading.thread.currentthread.currentculture);
Comments
Post a Comment