Created
December 5, 2016 06:41
-
-
Save hasibkamal/3ed033a831f5fe3f00c5e0889cd0a9f1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App\Libraries\CommonFunction::changeDateFormat(substr($alreadyExistApplicant->arrival_date, 0, 10) | |
public static function changeDateFormat($dateicker, $mysql = false) { | |
if ($mysql) { | |
return Carbon::createFromFormat('d-M-Y', $dateicker)->format('Y-m-d'); | |
} else { | |
return Carbon::createFromFormat('Y-m-d', $dateicker)->format('d-M-Y'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment