marked function longDateFormat as deprecated