title: Saving to MySQL TIME and DATE data types through PHP
body: <p>I need to store date in DATE type and time in TIME type in a MySQL database table. I have found many ways such as formatting and converting from unix time etc. but whats the most straightforward, simplest way to create data to store as DATE and TIME types in MySQL when using PHP.</p>