![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
25/01/2007, 16:58
|
![Avatar de RootK](http://static.forosdelweb.com/customavatars/avatar16442_4.gif) | Moderador | | Fecha de Ingreso: febrero-2002 Ubicación: México D.F
Mensajes: 8.004
Antigüedad: 23 años Puntos: 50 | |
Re: pasar de string a datetime ese problema es dependiendo del la configuracion regional de la maquina, si es EU debe ser la fecha en formato MM/dd/yyyy para hacer el parse pero para evitarte problemas y siempre te lea bien el formato transforma tu string en formato yyyy/MM/dd
ejemplo
string sDate = "2006/01/25";
DateTime d = DateTime.Parse(sDate);
Salu2 |