preloader-matrix

Alfasith

To get Calender, Date, Day or month in AX

Hi,

static void AlfasithCalender(Args _args)
{
    print dayOfMth(today());        // Date
    print dayOfYr(today());         // Day of year
    print wkOfYr(today());          // Week of  year 
    print mthOfYr(today());         // month in numerals;
    print mthName(mthOfYr(today())); // Month Name
    print year(today());            // Year
    print dayName(dayOfWk(today()));// Day like Monday, tues…
   // print mkdate(1,mthofyr(today()),year(today())); // Date with separator as “/”
    print today();
    print date2str(today(),123,2,2,2,2,4); // Date with sepearator as “.”
    pause;
}
Regards,
Share on email
Share on facebook
Share on twitter
Share on linkedin
Share on pinterest

Leave a Reply

Your email address will not be published.