I am facing a problem getting employee joining date in DAX 2012 R3 HR module.
when get employee joining date by T-SQL query it show me one day previous(Back date) date in T-SQL result i.e AX date of joining =
SQL date of joining
please help me
What exactly is the problem and what do you try to achieve exactly?
Would be great if you could provide some additional information and write a bit more :-) to fully understand what the underlying issue is.
Many thanks and best regards,
The date in SQL is in utc timezone. you need to apply timezone offset based on user and then you will get the correct date from T-sql.
i have solved by adddate(hour,5,validdate) from hcmemployement
any example please
You used correct SQL function dateadd.
SQL- dateadd(hour, -8, assign.validTo)
select top 1 CREATEDDATETIME SQLTime,
DATENAME(TzOffset, CREATEDDATETIME AT TIME ZONE 'Pacific Standard Time')))
AS UI_Time from CUSTTABLE where DATAAREAID = 'usmf'
SQL time = 2013-01-03 11:58:40.000
My timezone is pacific
UI_Time - 2013-01-03 03:58:40.000 (D365 shows same).
There are multiple ways of achieving the same result, you need to find which one you want to use.
Hi MAKDAX2012_Ahmed..If your question has been resolved, please take time to verify the answer.
Business Applications communities