I have a PHP variable which is a date format string, it is "Y-m-d" but could be other date format strings, I\'d like to pass this to a script which requires a JS d