How axapta converts date to hijri?

Hi everybody as all you know , dynamics ax 2009 supports hijri and um al qura calendars and date system i want to know how dynamics converts georgian date to hijri i mean is there any class in AOT that is responsible for this job? there is a class in AOT named calendarconverter but its just responsible for calendar lookup form and axapta converts georgian date to hijri in another way. its really important for me and my job to know and find this class if exist thanks for your care

Hi,

Can you explain in detailed…

Hi Maziar,

Does this help - http://blog.amer-ax.com/?p=103?

Hi naresh

what type of explain you want?

i think i explained everything

when you set axapta preferred calendar to hijri , it converts all dates to hijri date

im searching for a class that is responsible for converting dates in axapta ( the class that converts these dates to hijri)

Hi harish

thanks for your care and answer

but i had seen this blog before , in this post amer tries to use a new way to show hijri dates but i want to know axapta date conversion mechanism itself

Hi Maziar,

Have you looked at CalendarConverter class? In particular have a look at methods such as ‘addMonths’, ‘addYears’ etc.

Hope this helps!

Hi Harish

thanks for your care but

as you can see i wrote about this class in my first post

i should repeat that this class is just responsible for calendar lookup , NOT DATE CONVERSION SYSTEM.
even when you change calendar lookup form to another calendar like jalali , when you choose a date in that calendar , it will write hijri date in your selected field

What about winapi?
do you think that it may use windows dll’s?
like microsoft access

Hi Maziar,

If you study the class, you will notice that it is using CLR Interop classes. Again I refer to another post in Amer’s blog here - http://blog.amer-ax.com/?p=378.

Regards,