Earn 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!
User | Count |
---|---|
99 | |
86 | |
78 | |
75 | |
71 |
User | Count |
---|---|
112 | |
105 | |
96 | |
74 | |
66 |