Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
i want to calculate difference between created date and current UTC time, but its giving error.
can someone plese guide here?
Solved! Go to Solution.
Hi @Alice08
You haven't said what the error is so I'm guessing as to what is in your Createddate column.
Also you say you want to calculate the difference between a time and date. I presume you mean the difference between two dates as you are looking for the Duration.Days
Try this
= Duration.Days(DateTime.Date( DateTime.LocalNow()) - [CreatedDate])
Regards
Phil
Proud to be a Super User!
Thanks it worked
Hi @Alice08
You haven't said what the error is so I'm guessing as to what is in your Createddate column.
Also you say you want to calculate the difference between a time and date. I presume you mean the difference between two dates as you are looking for the Duration.Days
Try this
= Duration.Days(DateTime.Date( DateTime.LocalNow()) - [CreatedDate])
Regards
Phil
Proud to be a Super User!