Friday, October 10, 2014

Date Function .Example

// Date Function .. week name day,month week no,year . no of days

static void date_Functions(Args _args)
{
Transdate    d;
;

d = today();

info(strfmt("Date - %1",d));
info(strfmt("Month - %1",mthofYr(d)));
info(strfmt("Month Name - %1",mthname(mthofYr(d))));
info(strfmt("Day - %1",dayOfMth(d)));
info(strfmt("Day Name - %1",dayname(dayOfwk(d))));
info(strfmt("Year - %1",year(d)));
info(strfmt("Weekday number - %1",dayOfwk(d)));
info(strfmt("Day of year - %1",dayOfyr(d)));
info(strfmt("Week of the year - %1",wkofyr(d)));
   
}

No comments:

Post a Comment

Copy Markup charges while posting purchase invoice using X++

 Copy Markup charges while posting purchase invoice using X++ Class: Important: Code logic is just for Reference.  New class => Duplicate...