Entradas

Mostrando entradas de abril 1, 2018

PHP Fecha actual / PHP current date

Para que PHP devuelva la fecha actual es muy simple: $data["fechahoy"]=Date('Y-m-d'); Esto se hace en el controlador y cuando se llama a la vista en esta se recibe la variable y se le asigna al input type date como $fechahoy ***************************************** Tell to PHP returns current date is very simple: $data["todaydate"]=Date('Y-m-d'); This must be done in the controller then in the view receive the var to assign to the input type date as $todaydate