2
Hello, I have the following code to format the date that the user informs and inserts in my database:
$arrayData['data_validade'] = date_format("Y-m-d",strtotime(str_replace('/','-',$this->$arrayData)));
Only, this date_format, works only for the current date, but I do not want the current date, I want the date that the user informs through my datapicker.
Any suggestions?