Java date format to JavaScript date format

Java date format to JavaScript date format