Is there a simple way to convert a date object for the current time into YYYY-MM-DD HH:MM:SS
format? I've tried new Date().toLocaleString()
but that gives me a human readable date.
What are my options using jquery or javascript in order to do this?