Newbies mblc Posted August 2, 2010 Newbies Posted August 2, 2010 How to convert number to Date Exaple; total number =5968 to 17 year,2 month, 0 day thanks
comment Posted August 2, 2010 Posted August 2, 2010 Can you explain your request in more detail? "17 year,2 month, 0 day" is not a date. 5968 days would translate to roughly 16 years and 4 months - and I cannot see the logic that would produce the result you want.
fseipel Posted August 2, 2010 Posted August 2, 2010 Filemaker represents dates internally as the number of days since 1/1/0001. Hence, you can just set a field (of type date) equal to 5968, and then use the Month, Day, and Year functions on that field, to return the month, day, and year offsets relative to 1/1/1. Note that this will include leap years. This would give 5/4/17. If you want to make the returned date relative to some other date, say, January 1, 2010 (733773 days after 1-1-0001), you would instead set date to 733773 + 5968. There is also a function on Brian Dunning's site that will take a julian date number and convert it to a gregorian or julian date which may be of interest. http://www.briandunning.com/cf/239 -- note commas in function should be changed to decimals.
Recommended Posts
This topic is 5285 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 accountSign in
Already have an account? Sign in here.
Sign In Now