Date Format Convert


/ Published in: PHP
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. $date_blocks=explode(' ',$send_date);
  2. $send_date=$date_blocks[2].'-'.$date_blocks[1].'-'.$date_blocks[0];

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.