Added new macro for date conversions.