Note : DateEndYr(), DateStartyr() -- "IsObsolete". Instead of this functions replace with below function.
PeriodStart start; PeriodEnd End; xSession xSession = new xSession(); start = DateTimeUtil::getStartOfYearDate(xSession.preferredLocale(), DateTimeUtil::getToday(DateTimeUtil::getUserPreferredTimeZone())); End = DateTimeUtil::getEndOfYearDate(xSession.preferredLocale(), DateTimeUtil::getToday(DateTimeUtil::getUserPreferredTimeZone()));// today()); info(strFmt('start date%1,endDate%2',start,End));
Keep Daxing!!
No comments:
Post a Comment