datetime formatting with js and css