2 days ago · Well, what I wanted was to convert today's date to a MySQL friendly date string like , and to use that string as a parameter in one of my queries. The simple solution I've found is this: var today = new Date().toISOString().slice(0, 10); Keep in mind that the above solution does not take into account your timezone offset.. You might consider using this function instead. I have a date in a format like this themusicvaults.net = '', but I want to change the format to this '' using jQuery. How can I do this? Thanks in advance. Jul 11, · You have two options: parse the string to create a Date object and generate a formatted string from that, or just use the parts of the string and reformat it. In both cases, it is assumed that you want to treat it as a local date.