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

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -