Skip to content Skip to footer navigation
🏰 Statamic Summit 2027 Feb 16–19 Talks, workshops, and three nights in a German castle. Get Tickets

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