Tempcode Identifiers Needed

Post

Posted
Rating:
#3491
Joe
Well I want the current date to show, and then add 30 to the current date to give the user an idea of when the next payment is due, since payments would be due 30 days from that date (not the end of the month).

I'll play around with the parameters you gave me Chris. Thanks!

Post

Posted
Rating:
#3492
{$ADD} deals only with regular numbers. If you added 30 to 12 it would make 42, it's not going to know to advance a month, and you can't feed it dates.
PHP would with it's mktime function (its smart enough to carry over overflows), but I don't think there's a way to reconstitute a timestamp from calendar components in Tempcode.

You could try adding 60*60*24*30 to the timestamp though (whatever that comes to in seconds).
1 guest and 0 members have recently viewed this.