[Gambas-user] Adding a date to a number

Jussi Lahtinen jussi.lahtinen at ...626...
Fri Aug 10 01:14:32 CEST 2012


http://gambasdoc.org/help/lang/dateadd?show

Jussi



On 9 August 2012 23:33, rocko <sunblaster5 at ...626...> wrote:

> 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??
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list