Jump to content

calendar maniputation


Recommended Posts

hello everyone

i have an small problem, can somebody please give me some idea how to do current date+ x days(7,10,15,20days etc)

i don't need all done script, i need an idea how to do it,

i want to have gui like this

$data = GUICtrlCreateCombo("", 40, 32, 137, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "7days|10days|15days|20days|30days|60days|90days|120days|180days|365days", "7days")

and when i msgbox an button to show me the curent date+$data

any ideas how to do it without changing current date of windows?

thank you, i waiting your feedback's

good day

Link to comment
Share on other sites

From Help:

_DateAdd

--------------------------------------------------------------------------------

Calculates a new date based on a given date and add an interval.

#Include <Date.au3>

_DateAdd($sType, $iValToAdd, $sDate)

Parameters

$sType of one the following:

D - Add number of days to the given date

M - Add number of months to the given date

Y - Add number of years to the given date

w - Add number of Weeks to the given date

h - Add number of hours to the given date

n - Add number of minutes to the given date

s - Add number of seconds to the given date

$iValToAdd number to be added

$sDate Input date in the format YYYY/MM/DD[ HH:MM:SS]

Return Value

Success: Date newly calculated date.

Failure: 0 and Set @error

@error: 0 - No error

1 - Invalid $sType

2 - Invalid $iValToAdd

3 - Invalid $sDate

Remarks

The function will not return an invalid date.

When 3 months are added to '2004/1/31' then the result will be '2004/04/30'.

SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

Link to comment
Share on other sites

From Help:

i think this is it, you save my day, honestly

thank you very very much, i search the help but only for data and i didn't find any helping thing

thank you again mate

have an good day

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...