create carbon object
Closed this issue · 0 comments
palvaneh commented
ساعت نشان داده شده همواره 4:30 از ساعت ذخیره شده عقب است.
my server timezone is Asia/Tehran
my timezone in config/app.php is Asia/Tehran
code to save date:
jDateTime::createCarbonFromFormat('Y-n-j', $request->input('hire_date'))->toDateString()
code to show date:
jDate::forge($user->hire_date)->format('j F Y')