[Gambas-user] Adding a date to a number

rocko sunblaster5 at ...626...
Thu Aug 9 22:33:42 CEST 2012


I have a date box that I want to use for adding a number of days to.
EX: say user picks date 9/10/12(American style date format) and enters
30 days in a value box to add to the date and then display that in
another text box.

But I'm not sure what the formula in Gambas is for adding dates.

I want to this: date + 30 days = future date 
9/10/12 + 30 = 10/10/12.
$date = dateBox.Value + 30 
Is there a function for formating dates??





More information about the User mailing list