Last active
May 19, 2023 09:02
-
-
Save mdsami/ae7b3b3226e6f39df0c95698a03d743f to your computer and use it in GitHub Desktop.
Laravel-carbon AM , PM Date formate in blade
This file contains 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
// 24 Hrs formate | |
<td> {{ Carbon\Carbon::parse($item->created_at)->format('d-M-Y G:ia') }}</td> | |
//Output | |
//20-Jan-2019 00:17:16 AM | |
// 12 Hrs formate | |
<td> {{ Carbon\Carbon::parse($item->created_at)->format('d-M-Y g:i:s A' ) }}</td> | |
//Output | |
//20-Jan-2019 12:17:16 AM |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yeah