Quick Javascript Date Format

Format pretty much any valid date and return it in the standard Y-m-d format.