Convert user input date format to MySQL in CodeIgniter
I tried to convert a user input date with format dd-mm-yyyy to MySQL format yyyy-mm-dd.
I only found the functions here https://www.codeigniter.com/user_guide/helpers/date_helper.html.
Is there any way to do this?