Returns date in js format