Session date is not populating in batch job class


I have changed the AX session date and trying to assign that date to a field which is populating in batch job class. the code is as shown below.

inventClosing.Executed = DateTimeUtil::date(DateTimeUtil::getSystemDateTime());

Its not populating the session date instead it is showing today’s date when i run the batch job. but the same works when i run manually by unchecking the batch check box on dialog.

when i tried to hard code some dates like “systemdateget()-1”, it works in batch also. but the issue is when i am trying to pick the session date in batch job. Can any one please tell me what’s wrong here?