title: Bash time to mysql datetime
body: <p>I am trying to get the current time in a bash script and store it in a MySql database. How can I get the current time and convert it to a format that can be saved to a MySql datetime field.</p>