Utility for formatting timestamp to Gregorian or Jalali date.