Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding 1 year to a date
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00430291
Message ID:
00430812
Views:
10
>>>>GOMONTH() has been around since FPD 2.5 at least. DATE() with numeric parameters didn't appear until VFP 6.0.
>>>
>>>Ok, then I'm a dork. I was just going by an above post saying VFP 6 had GoMonth(), oh well, thought I'd try a different solution.
>>
>>Not to beat up on you, but the diffferent solution would also fail for leap day this year. In my first Computer Science in college, the final assignment was to generate a calendar. The instructor really gave us the solution with Zoeller's (sp?) Congruence. Been a wise-ass, I asked him if it was OK if I developed my own algorithm (I mean, really, he gave us the answer). So I've had a lot a fun fooling around with dates. You could use another method (other than GOMONTH() for this one), but believe me, it wouldn't be pretty. So...
>>
>>Would you prefer "Mr. Dork"?:-)
>
>Hi George,
>
>Since you're so good about dates, have you already had a chance to take a look into my husband's Passower calculation? Did you write your own algorithm? It would be tough, because 1) Jews use Loonar calendar; 2) Pesah could not fall on specific week days...

Hi Nadya,

No I haven't had a chance. In my spare time I've been involved in a contract job. I'll let you know when I get to it, but between the contract and my VFUG articles with Ed, I'm pretty snowed under. Side note, however, the date of Easter is calculated using a Lunar calendar (with, as Tamar pointed out, a 19 year cycle similar to the Jewish calendar). I'm most interested in seeing what if any connection can be made and if that connection can be made to include Jewish holy days.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform