Skip to main content

Posts

Showing posts with the label timezone

Date to datetime conversion in axapta

This code is Date to datetime conversion in axapta. Try this way. date fromDate ; Timezone timezone = DateTimeUtil::getUserPreferredTimeZone(); ; fromDate=mkdate(1,mthofyr(str2date('1/9/2009',123)),Year(str2date('1/9/2009',123))); abc.DateTime1>= datetobeginUtcDateTime(fromDate,timezone)