Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

A popular book on FileMaker states:

GetAsNumber ( Get ( Current Date) ) returns 731689 when the date is 4/18/2004

And later states that the Month function can accept "an integer that represents a serialized date value". For example: Month ( 718977 ) returns 6

But they don't include any definition of "serialized date value" in order to follow the calculation.

What I'm seeking is a reliable way to turn a date into an integer -- and then get the date back again. The exact format doesn't matter, but extracting the usable date does. I suppose I can use a Month + Day + Year method to reconstruct the date, but I'd like to understand the basis for doing so.

Anyone have a suggestion on a source of information?

Posted (edited)

filemaker calculates the dates from 01/01/0001

the number 732830 represents the days that has past from that date to 6/3/07.

Edited by Guest
Posted

Thanks. That helps somewhat. Can you confirm that there is no FMP function to get the date back out of the integer -- excepting the "assemble the parts" method that I mentioned?

Posted

you can a calculation.... just reference the number field but the result type of calculation is a date

For example

NumberField = 732830

DateField = Calculation (resulting as Date just reference the NumberField ) or Date Field (auto enter: NumberField)

Posted

Oh. Yes, I did answer my own question, didn't I?

I got a little caught up with some other calculations I was doing and factored a few too many things in -- and missed the obvious. (It's getting late.)

Sorry. Thanks for responding, though.

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