Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Jacob Mahto
Added: Apr 15, 2018 7:48 PM
Views: 21
Tags: no tags
  1. function correctDate($str){  
  2. $str = date_create($str);
  3. $str = date_format($str, 'd/m/Y');
  4. return $str;
  5. }