Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

date format in blade

{{ date('d-m-Y', strtotime($project->start_date)) }}
{{ date('d-m-Y h:i:s', strtotime($project->start_date)) }}
{{ date('h:i:s', strtotime($project->start_date)) }} 
{{ (strtotime($project->start_date) < time()) ? 'text-danger' : '' }}
 
PREVIOUS NEXT
Tagged: #date #format #blade
ADD COMMENT
Topic
Name
5+9 =