I have 3 variable $day , $month and $year and I want to create a date variable with these 3 variables in this fromat : yyyy-mm-dd in php.
$year variable is a persian year for example $year= 1390
this code works properly but not for persian date :
date("d-m-Y", mktime(0, 0, 0, $fMonth, $fDay, $fYear));
How I can do it ?
So you’d want something like this:
EDIT: Oops, sorry, fixed.