Last active
September 18, 2018 14:14
-
-
Save hungthai1401/0aa2b169a854340050530c18af17d0a0 to your computer and use it in GitHub Desktop.
Format datetime
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
Format datetime by Carbon: | |
1. setlocale(LC_TIME, 'ja_JP.utf8'); | |
2. $value->formatLocalized('%Y/%-m/%d (%a) %H:%M') (Ex: 2018/4/15 (日) 20:47) | |
Note: | |
- Month without leading zero: %-m |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment