Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transformar fecha USA a CL #60

Open
Gonen09 opened this issue Mar 12, 2016 · 0 comments
Open

Transformar fecha USA a CL #60

Gonen09 opened this issue Mar 12, 2016 · 0 comments

Comments

@Gonen09
Copy link
Collaborator

Gonen09 commented Mar 12, 2016

/Transformacion de fecha USA a fecha CL/

$fechaUsa = date_parse($row['Fecha']);

if ($fechaUsa['day'] < 10){

$fechaUsa['day'] = "0".$fechaUsa['day'];

}

if($fechaUsa['month'] < 10){

$fechaUsa['month'] = "0".$fechaUsa['month'];

}

$fecha = $fechaUsa['day']."/".$fechaUsa['month']."/".$fechaUsa['year'];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant