Posted By

nebojsac on 08/12/11


Tagged

date format convert


Versions (?)

Date Format Convert


 / Published in: PHP
 

Switches 'dd mm yyyy' to 'yyyy-mm-dd'

  1. $date_blocks=explode(' ',$send_date);
  2. $send_date=$date_blocks[2].'-'.$date_blocks[1].'-'.$date_blocks[0];

Report this snippet  

You need to login to post a comment.