Posted: 1 Feb 2019 5:00 EST Last activity: 7 May 2019 17:06 EDT
date comparision in openspan
I have a requirement where I need to fetch the runtime start datetime and end datetime of project. And also the complete time taken for project execution. I have used system.date compare but it is not working for me. Could you please guide me?
You can use Now() from DateTimeUtils component to get current time as DateTime and then Subtract() to get difference between two DateTimes. It returns TimeSpan object which can be converted to various formats.