first date of the current year Expression in report

Hi,

Can anyone tell me Is there any expression for first date of the current year and end date of the current year that can be used in report?

to find the first date and last date of a year AX already has a function

DateStartYr()

DateEndYr()


for example, just for you to be clear, you can run this on a job to check

{

date yourvariable;

;

yourvariable=DateEndYr(today());

info(date2str(yourvariable,123,2,2,2,2,4));

}

thanks but i asked for expression not function

Try something like =DateSerial(Year(Now()), 1, 1) and =DateSerial(Year(Now()), 12, 31).

By the way, you can use functions in expressions, so “I asked for expression not function” doesn’t make any good sense. The examples I gave you also contain several method (function) calls.

I won’t argue with you sir , as i am just 17 post old [:D]