DateTime problems when moving to production environment
问题 I have several forms within my MVC app that have date values which are chosen via a datepicker tool. This works well when debugging locally but on deployment to the cloud environment my dates are not being correctly converted. I have the following code: string[] uploaddate = form.GetValues("uploaddate"); string[] expirydate = form.GetValues("expirydate"); This gets the date as 31/08/2013 etc. and from here I was converting to DateTime as follows: Convert.ToDateTime(uploaddate[0]); Convert