working datetime format using js and css