Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Carbon Date format

$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 #Date #format
ADD COMMENT
Topic
Name
7+3 =