convertir string a fecha
Publicado por alexis (47 intervenciones) el 20/11/2008 00:44:53
que tal,
estoy intentando convertir de string a fecha
pero me manda este error
Error al realizar la consulta No se puede reconocer la cadena como valor DateTime válido.
quiero que sea "dd/MM/yyyy" le intente colocar la mascara
fecha = DateTime.Parse(txt_fecha.Text, "dd/MM/yyyy")
intente con
Dim fecha As DateTime
fecha = DateTime.Parse(txt_fecha.Text)
y
fecha = Convert.toDateTime(txt_fecha.Text)
estoy intentando convertir de string a fecha
pero me manda este error
Error al realizar la consulta No se puede reconocer la cadena como valor DateTime válido.
quiero que sea "dd/MM/yyyy" le intente colocar la mascara
fecha = DateTime.Parse(txt_fecha.Text, "dd/MM/yyyy")
intente con
Dim fecha As DateTime
fecha = DateTime.Parse(txt_fecha.Text)
y
fecha = Convert.toDateTime(txt_fecha.Text)
Valora esta pregunta


0