dateByUnit is deprecate , should use AZ_dateByUnit