JavaScript - Método Date toDateString ()
Descripción
Fecha de JavaScript toDateString() El método devuelve la parte de fecha de un objeto Date en forma legible por humanos.
Sintaxis
Su sintaxis es la siguiente:
Date.toDateString()
Valor devuelto
Devuelve la parte de fecha de un objeto Date en un formato legible por humanos.
Ejemplo
Pruebe el siguiente ejemplo.
<html>
<head>
<title>JavaScript toDateString Method</title>
</head>
<body>
<script type = "text/javascript">
var dt = new Date(1993, 6, 28, 14, 39, 7);
document.write( "Formated Date : " + dt.toDateString() );
</script>
</body>
</html>
Salida
Formated Date : Wed Jul 28 1993