Jump to content

This topic is 8395 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I want a script to tell me if a date field is less than 2 years older than the current date. I've tried a few things and can get a year to work but it's not a full 2 year difference. It just checks the year so it could be 1 year and 1 month and not a whole year.

All help appreciated!

nati

Link to comment
Share on other sites

You don't need a script to do it. I think the trick you're looking for is found by adding 729 to Status(CurrentDate). Status(CurrentDate) is actually a count of days (since 0/0/0000). You can use this in a calculation field or to paste in a date field to search on (ie in a script).

HTH

Link to comment
Share on other sites

This topic is 8395 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.