Add date format js library ti format dates like in PHP