# [laravel][datetime]將從資料庫取出的日期資料格式化 ###### tags: `laravel`,`php`,`datetime` https://stackoverflow.com/questions/1535246/format-date-from-database view ```htmlmixed! @foreach ($items as $item) <div>日期: {{ date('yy/m/d h:mA', strtotime($item["created_at"])) }}</div> @endforeach ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up