Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
New_Bee77
Contributor
Contributor

I want to compare date field with current date

I want to get the difference between current date and date field (certexpirydate)

The date format of [certexpirydate] field is 'Mar 16 11:34:29 2023 GMT'.  

date() - date#(certexpirydate)

Labels (2)
1 Solution

Accepted Solutions
hic
Former Employee
Former Employee

Try (preferably in the script)

Today()-Date#(Left(certexpirydate,Index(certexpirydate,' ',-1)-1),'MMM DD hh:mm:ss YYYY')

View solution in original post

2 Replies
hic
Former Employee
Former Employee

Try (preferably in the script)

Today()-Date#(Left(certexpirydate,Index(certexpirydate,' ',-1)-1),'MMM DD hh:mm:ss YYYY')

New_Bee77
Contributor
Contributor
Author

Thank you Henric!