Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Carbon Format date with timezone in views Laravel

$date = CarbonCarbon::createFromFormat('Y-m-d H:i:s',$calc[0]['created_at']);
$date->setTimezone('Asia/Karachi');
$date->format('d M, Y H:i A')
 
PREVIOUS NEXT
Tagged: #Carbon #Format #date #timezone #views #Laravel
ADD COMMENT
Topic
Name
9+5 =