.net - What is best practise of using DateTime in different cultures -


I have an asp.net site on several pages, datetime is used to shut down the user and then its Along with some DB table is inserted or updated. My problem is that I have two versions of the site: local for testing (Ukraine) and production (USA). Because the datatime format of different cultures in these sites is different. What is the best way to unregistered workflow with Datetime format? For example, I have a page with textbox in which this datatyme is entered and the regular expression validator. How do I work with my local site (dd.mm.yyyy in DT format) and production time (MM / DD / YY)? Thank you.

You can define culuture in web.cconfig and code consistently.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -