Jump to content

Filemaker Dates stored as number.


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

Recommended Posts

I am using the number generated by FMP5 dates as a Lot#. We also use a separated labelling program to print box labels. I was trying to duplicate a calculation so that I could generate that number.

I thought the calculation was this:

(year - 1)* 365 + ABS((year - 1) / 4) + (day of the year)

Calc days ^ Calc leap yr^ Calc act day^

Why is this wrong?

Thanx in advance.

Thomas

Link to comment
Share on other sites

If you go with your original logic, you need to be more accurate on the leap year portion. Use: "(year-1)*365.2425".

Remember that one of the software / date glitches associated with Y2K was due to the fact that there were 29 days in February, but it wasn't a normal 4 year rotation. This happens every 400 years.

[ May 11, 2001: Message edited by: dspires ]

Link to comment
Share on other sites

Thanx dspires!

Mark, I could do that but the dates that are valid are from 1901 on and then I would have to add the remaining number to it so it would match with FMP5's number I wanted it to be automatic. I was worried that the dates wouldn't match up. Which in a few hundred years they wouldn't LOL. But now they will be fine until the end of time.

I appreciate all the suggestions and help!

Thomas

Link to comment
Share on other sites

Just an FYI

System date on the Mac starts at 1/1/1904 with a value of 1

System date on Windows starts at 1/1/1900 with a value of 0

Found this out dealing with some MS Excel issues between platforms.

[ May 14, 2001: Message edited by: WBlanchard ]

[ May 14, 2001: Message edited by: WBlanchard ]

Link to comment
Share on other sites

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