Código HTML:
$fecha = date("d-m-Y H:i:s"); $nuevafecha = strtotime ( '-5 hour' , strtotime ( $fecha ) ) ;
saludos nuevamente
Jorge
| |||
trabajo con fechas php Hola amigos, un saludo desde merida mexico, estoy haciendo un trabajo con php y no le encuentro solucion, les envio lo que tengo hasta ahora: Código HTML: $fecha = date("d-m-Y H:i:s"); $nuevafecha = strtotime ( '-5 hour' , strtotime ( $fecha ) ) ; saludos nuevamente Jorge
__________________ Jorge Couoh es profesor de Computo. sus sitios son: Cheap Web Hostingl y Cheap web hosting Services |
| ||||
Respuesta: trabajo con fechas php Lee esto: http://php.net/manual/es/datetime.format.php Y esto: http://php.net/manual/en/function.date.php "l (lowercase 'L') A full textual representation of the day of the week Sunday through Saturday" Para obtenerlo en español podrías cambiar la configuración o hacer un switch.
__________________ Dicen que las personas piensan en su lengua materna, yo lo hago en PHP |
Etiquetas: |