I am using datepicker with from and to dates.
When posting these dates in PHP the date format is mm/dd/yyyy.
I need to convert this to MySQL format yyyy-mm-dd
Can it be done like this?
$from = $_GET['from'];
$phpdate = strtotime( $from );
$from_date = date( 'Y-m-d', $phpdate );
I tried this but it doesn't work.