has_timestamp
A boolean for whether or not an entry is time-based.
{{ if has_timestamp }}
{{ date format="F jS, Y g:i a" }}
{{ else }}
{{ date format="F jS, Y" }}
{{ /if }}
@if ($has_timestamp)
{{ $date->format('F jS, Y g:i a' )}}
@else
{{ $date->format('F jS, Y') }}
@endif
January 1st, 2016 11:30 am
Docs Feedback
Submit improvements, related content, or suggestions through Github.
Betterify this page