Skip to content

Instantly share code, notes, and snippets.

@bferronato
Last active December 5, 2016 16:13

Revisions

  1. bferronato renamed this gist Dec 5, 2016. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. bferronato revised this gist Dec 5, 2016. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion Formatar data
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,6 @@
    <?php

    $show_date = DateTime::createFromFormat('d/m/Y', $dateInput)->format('Y-m-d');

    http://stackoverflow.com/questions/15676344/format-date-dd-mm-yyyy-to-yyyy-mm-dd-php
    // Fonte:
    // http://stackoverflow.com/questions/15676344/format-date-dd-mm-yyyy-to-yyyy-mm-dd-php
  3. bferronato revised this gist Dec 5, 2016. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion Formatar data
    Original file line number Diff line number Diff line change
    @@ -1 +1,3 @@
    $show_date = DateTime::createFromFormat('d/m/Y', $dateInput)->format('Y-m-d');
    $show_date = DateTime::createFromFormat('d/m/Y', $dateInput)->format('Y-m-d');

    http://stackoverflow.com/questions/15676344/format-date-dd-mm-yyyy-to-yyyy-mm-dd-php
  4. bferronato created this gist Dec 5, 2016.
    1 change: 1 addition & 0 deletions Formatar data
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    $show_date = DateTime::createFromFormat('d/m/Y', $dateInput)->format('Y-m-d');