Jump to content

Adding years to a date field


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

Recommended Posts

  • Newbies

How do I add 100 years to an existing date field. The date is showing as year 1900 and I need it to show as the year 2000. This was an import from a ClarisWorks database. I have tried everthing I can think of to add 100 years but it doesne't seem to work.

Link to comment
Share on other sites

First find all the dates before say 1901 and then run this script:

Enter Browse Mode

Go To Record/Request/Page [First]

Loop

Set Field[YourDate, YourDate + 36524]

Go To Record/Request/Page [Exit After Last, Next]

End Loop

This should give accurate dates for all dates showing as 1900 rather than 2000 but not necessarily dates showing as before 1887 and after 1903 because of leap years.

Hope htis helps.

Link to comment
Share on other sites

This topic is 8499 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.