loading table of contents...

1.16. TO_DATE()

 
TO_DATE
Esta función permite convertir cualquier valor string o entero a formato fecha.
Retorna: date 
Retorna fecha según se le indique el tipo de formato a mostrar; TO_DATE (string, format)
Parámetros:
object  fecha
Fecha puede ser un número o un string
Versión: 4.0.2+
 
Ejemplo:
var String hoyDate = "16012015";
TO_DATE (hoyDate , "mm/dd/yyyy");
hoyDate = 16/01/2015;