591 Views    -    10 Replies


Username Post: Date modification        (Topic#213734)
Your continued generosity and support of FMForums is greatly appreciated.
merkaba22 
master
Posts: 342

Loc: Hollywood, CA
Post Rank (AVG):
            


FMP: 10
OS: Mac OS X Snow Leopard
Skill: Advance



Tweet This! Tweet This Post!
03-09-10 10:25 AM - Post#352060     - Post Rank:             


I am aware that FileMaker can modify dates, for example, fora date a year later:

(date + 365).

However, in the case of a month later:

(date + 30)

does not return the same day a month later.

Is there another way to calculate this requirement?
"We are the ones we have been waiting for!”

"We owe a lot to the Indians (from India), who taught us how to count, without which no worthwhile scientific discovery could have been made." - Albert Einstein.

Twenty years from now you will be more disappointed by the things you didn't do than by the ones you did do ... Explore. Dream. Discover'. Mark Twain

"Someday," Neil Young said, "the digital age will be seen as the Dark Ages of recorded sound."

"Like the Maya, we shall understand that the path to the stars is through the senses."

"Dream big -- because no matter how big that is, it's nothing compared to what you really can do".

"Using the most reliable approach for bending reality to your desires, imagination is always the key first ingredient, then by adding clear intention, expectation and action, results will be realized."














raybaudi 
ChindoguMaker
Posts: 2678
raybaudi

Loc: Italy Rome
Post Rank (AVG):
            


FMP: 10 Advanced
OS: Windows XP
Skill: Intermediate



Tweet This! Tweet This Post!
03-09-10 10:40 AM - Post#352063     - Post Rank:             
    In response to merkaba22

If the starting DATE is: 01/30/2010
which must be the ending one ?
Daniele
--------------------------------
I'm sorry for my English











merkaba22 
master
Posts: 342

Loc: Hollywood, CA
Post Rank (AVG):
            


FMP: 10
OS: Mac OS X Snow Leopard
Skill: Advance



Tweet This! Tweet This Post!
03-09-10 10:49 AM - Post#352066     - Post Rank:             
    In response to raybaudi

Thanks Daniele:

Good point, but if there is a calc where the starting DATE is:

01/27/2010

the result required would be:

02/27/2010

"We are the ones we have been waiting for!”

"We owe a lot to the Indians (from India), who taught us how to count, without which no worthwhile scientific discovery could have been made." - Albert Einstein.

Twenty years from now you will be more disappointed by the things you didn't do than by the ones you did do ... Explore. Dream. Discover'. Mark Twain

"Someday," Neil Young said, "the digital age will be seen as the Dark Ages of recorded sound."

"Like the Maya, we shall understand that the path to the stars is through the senses."

"Dream big -- because no matter how big that is, it's nothing compared to what you really can do".

"Using the most reliable approach for bending reality to your desires, imagination is always the key first ingredient, then by adding clear intention, expectation and action, results will be realized."














comment 
consultant
Posts: 15253
comment

Post Rank (AVG):
            


FMP: 7 Advanced
OS: Mac OS X Panther



Tweet This! Tweet This Post!
03-09-10 11:05 AM - Post#352069     - Post Rank:             
    In response to merkaba22

And if starting date is 01/31/2010?










Lee Smith 
*$ time
Posts: 8286
Lee Smith

Loc: Woodland - Sacramento, CA...
Post Rank (AVG):
            


FMP: 10 Advanced
OS: Mac OS X Snow Leopard

Member: TechNet
Skill: Advance



Tweet This! Tweet This Post!
03-09-10 11:10 AM - Post#352071     - Post Rank:             
    In response to merkaba22

Do you mean this?

Date ( Month ( AnyDate ) + 1 ; Day ( AnyDate ) ; Year ( AnyDate ) )

Lee










merkaba22 
master
Posts: 342

Loc: Hollywood, CA
Post Rank (AVG):
            


FMP: 10
OS: Mac OS X Snow Leopard
Skill: Advance



Tweet This! Tweet This Post!
03-09-10 11:20 AM - Post#352072     - Post Rank:             
    In response to Lee Smith

Thanks Lee -- you nailed it!
"We are the ones we have been waiting for!”

"We owe a lot to the Indians (from India), who taught us how to count, without which no worthwhile scientific discovery could have been made." - Albert Einstein.

Twenty years from now you will be more disappointed by the things you didn't do than by the ones you did do ... Explore. Dream. Discover'. Mark Twain

"Someday," Neil Young said, "the digital age will be seen as the Dark Ages of recorded sound."

"Like the Maya, we shall understand that the path to the stars is through the senses."

"Dream big -- because no matter how big that is, it's nothing compared to what you really can do".

"Using the most reliable approach for bending reality to your desires, imagination is always the key first ingredient, then by adding clear intention, expectation and action, results will be realized."














LaRetta 
Developer
Posts: 7467
LaRetta

Post Rank (AVG):
            


FMP: 11 Advanced
OS: Cross Platform

Member: TechNet, FBA

 FMPug

Tweet This! Tweet This Post!
03-09-10 03:28 PM - Post#352118     - Post Rank:             
    In response to merkaba22

  • merkaba22 Said:
However, in the case of a month later: (date + 30)
does not return the same day a month later. Is there another way to calculate this requirement?



You are missing the point by Daniele (although his example didn't show it) and Michael (Comment):

If the start is 1/31/2010, one month later would be 2/31/2010 which FM would translate to 3/3/2010 (or 3/2 if a leap year). You must define the rules on how the calculation should handle the difference when the number of days in the result month is shorter than the number of days in the beginning date. Do you want the last day of the SAME month or do you want it to run into the next month by (up to) 3 days?


Edited by LaRetta on 03-09-10 03:32 PM. Reason for edit: No reason given.










merkaba22 
master
Posts: 342

Loc: Hollywood, CA
Post Rank (AVG):
            


FMP: 10
OS: Mac OS X Snow Leopard
Skill: Advance



Tweet This! Tweet This Post!
03-09-10 08:09 PM - Post#352145     - Post Rank:             
    In response to LaRetta

Thanks Loretta -- but I did get it, that; why I changed the day ...

Nonetheless, you did provide me he answer to my next question and I thank you for that!

"We are the ones we have been waiting for!”

"We owe a lot to the Indians (from India), who taught us how to count, without which no worthwhile scientific discovery could have been made." - Albert Einstein.

Twenty years from now you will be more disappointed by the things you didn't do than by the ones you did do ... Explore. Dream. Discover'. Mark Twain

"Someday," Neil Young said, "the digital age will be seen as the Dark Ages of recorded sound."

"Like the Maya, we shall understand that the path to the stars is through the senses."

"Dream big -- because no matter how big that is, it's nothing compared to what you really can do".

"Using the most reliable approach for bending reality to your desires, imagination is always the key first ingredient, then by adding clear intention, expectation and action, results will be realized."














merkaba22 
master
Posts: 342

Loc: Hollywood, CA
Post Rank (AVG):
            


FMP: 10
OS: Mac OS X Snow Leopard
Skill: Advance



Tweet This! Tweet This Post!
03-09-10 11:43 PM - Post#352151     - Post Rank:             
    In response to LaRetta

The requirements for the calc is that if the start date is 1/31/2010,one month later should be 2/28/2010, or 2/29/2010 if it's a leap year.
"We are the ones we have been waiting for!”

"We owe a lot to the Indians (from India), who taught us how to count, without which no worthwhile scientific discovery could have been made." - Albert Einstein.

Twenty years from now you will be more disappointed by the things you didn't do than by the ones you did do ... Explore. Dream. Discover'. Mark Twain

"Someday," Neil Young said, "the digital age will be seen as the Dark Ages of recorded sound."

"Like the Maya, we shall understand that the path to the stars is through the senses."

"Dream big -- because no matter how big that is, it's nothing compared to what you really can do".

"Using the most reliable approach for bending reality to your desires, imagination is always the key first ingredient, then by adding clear intention, expectation and action, results will be realized."














comment 
consultant
Posts: 15253
comment

Post Rank (AVG):
            


FMP: 7 Advanced
OS: Mac OS X Panther



Tweet This! Tweet This Post!
03-09-10 11:49 PM - Post#352152     - Post Rank:             
    In response to merkaba22

See:
http://fmforums.com/forum/showpost.php?post/217855/










Your continued generosity and support of FMForums is greatly appreciated.
Vaughan 
Mostly Harmless
Posts: 8179
Vaughan

Loc: Sydney, Australia
Post Rank (AVG):
            


FMP: 9 Advanced
OS: Mac OS X Leopard

Member: TechNet
Skill: Advanced

Certified:
     



Tweet This! Tweet This Post!
03-10-10 02:33 AM - Post#352166     - Post Rank:             
    In response to merkaba22

Change the requirement to specify an explicit number of days.

There is a reason why some warranties are specified as 30 days or 60 days. It avoids all confusion and ambiguity.
Vaughan Bromfield Sydney, Australia Please post questions to the Forum, not directly to me. Back-up your files before making changes! Whenever I hear the term "popular culture" I reach for my Iridium Q-36 Space Modulator.











Icon Legend Permissions Topic Options
Print Topic

Email Topic

591 Views
Welcome Guest...
Enter your username and password to login. If you do not have a username you can register one here

Username

Password

Remember me. Help



Forgot Password...


Quick Links
Recent Posts
Active Topics
No Replies
Recent Files
Functions & Scripts
FileMaker Pro Help
FileMaker on Twitter
FileMaker Marketplace

Custom Search

Find FileMaker Developers

Don't have time to wait,
hire a developer now!

Recent Members
Welcome them to our community!
Find FileMaker Jobs

Want a new career?
Find your new job now!

Joy of Tech
Latest Joy of Tech!

Recent Topics
Recent Hot Topics
Contribute
With your generosity we can make some real magic happen!. Support your favorite online FileMaker community...
FM Forums.com


Click here...


Or a Donation of any amount.


Thanks for your support!

Active Blogs
0 Recent blogs:
People to Post Lately in this Topic
merkaba22
raybaudi
comment
Lee Smith
LaRetta
Vaughan
FM Forums Advertisers


FusionBB™ Version 3.0 FINAL | ©2003-2010 InteractivePHP, Inc.
Execution time: 0.488 seconds.   Total Queries: 146   Zlib Compression is on.
All times are . Current time is 08:58 AM
Content ©1996-2008 Ocean West Consulting, Inc. All Rights Reserved
Ocean West Consulting, Inc. can not and will not be held responsible for any of the contents in this site.
FM Forums™ is a trademark of Ocean West Consulting, Inc an independent entity, not affiliated with FileMaker Inc.
FileMaker® is a registered trademark of FileMaker Inc.
Top