Reply to post: Date maths

You've seen things people wouldn't believe – so tell us your programming horrors

Stuart 29
FAIL

Date maths

About 3 years ago I had test a Salesforce implementation from one of the "big" partners.

I found this little gem for moving a payment date on by a quarter (pseudo-code):

date__c = date__c + (365/4)

and monthly

date__C = date++c + (365/12)

Oh the pain...

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon