Some Important date functions in AX


Dayname: Retrieves the name of the day of the week specified by a number.
wkofyr : Calculates the week of the year in which a date falls

mthofyr: Retrieves the number of the month in the year for the specified date.

mthname : Retrieves the name of the specified month

mkdate : Creates a date based on three integers, which indicate the day, month, and year, respectively.

dayofmth: Retrieves the day of the specified date.

dayofyr: Retrieves the day of the specified date.

year: Get year from date

dayofwk: Calculates the day of the week for a date.

prevmth:  Retrieves the date in the previous month that corresponds most closely to the specified date.

prevyr: Retrieves the date in the previous year that corresponds most closely to the specified date.

prevqtr: Retrieves the date in the previous quarter that corresponds most closely to the specified date.

Today: Retrieves the current date on the system.


هناك 5 تعليقات:

  1. How to get a prevDay()?
    Like 1/1/2013 from 2/1/2013?

    ردحذف
    الردود
    1. I dont think you have prevDay() available. You can write it as: date1 = currentdate - 1;

      حذف
  2. أزال المؤلف هذا التعليق.

    ردحذف
  3. how to get date difference ?

    ردحذف
  4. أزال أحد مشرفي المدونة هذا التعليق.

    ردحذف

DeepSeek-R1: The AI Revolution Everyone’s Talking About!

  In the ever-evolving world of artificial intelligence, a new player has emerged, challenging the giants and rewriting the rules of innovat...

يتم التشغيل بواسطة Blogger.