Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dantoncancella/4564408 to your computer and use it in GitHub Desktop.
Save dantoncancella/4564408 to your computer and use it in GitHub Desktop.
Formating brazilian date to english date
// After process, execute the PHP
$aux_date = implode("-", array_reverse(explode("/", date('d/m/Y'))));
// Or the JS
var aux_date = $('.date').val().split('/').reverse().join('-');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment