Jump to content
Sign in to follow this  
gcue

variables/array not matching up

Recommended Posts

gcue

the script opens up with the current date in its month, day, year fields

$tCur = _Date_Time_GetSystemTime()
    
$fech = _Date_Time_SystemTimeToDateTimeStr($tCur)
$fecha = StringSplit($fech," ")

$tdate = StringSplit($fecha[1],"/")

$mm_date = $tdate[1]
$dd_date = $tdate[2]
$yyyy_date = $tdate[3]

GUICtrlCreateLabel("Date:", 85, 12)
$month = GUICtrlCreateInput ($mm_date, 120, 10, 30, 20)
GUICtrlCreateLabel("/", 155, 12)

$day = GUICtrlCreateInput ($dd_date, 165, 10, 30, 20)
GUICtrlCreateLabel("/", 200, 12)

$year = GUICtrlCreateInput ($yyyy_date, 210, 10, 40, 20)

but i want the user to be able to change that date from the default current date to whatever he/she wants

so this should bring back the date entered by the user right?

$date_request = $month & "/" & $day & "/" & $year

i get something completely different even different than the current date - i get "5/7/9"

Edited by gcue

Share this post


Link to post
Share on other sites
weaponx

$date_request = GUICtrlRead($month) & "/" & GUICtrlRead($day) & "/" & GUICtrlRead($year)

Edited by weaponx

Share this post


Link to post
Share on other sites
spudw2k

Check out the Date macros too. You can do what you want without the Date.au3 stuff.

@MON & "/" & @MDAY & "/" & @YEARoÝ÷ Ø    l¡KB¶¹Qy§m¢­u«Z~º&'¶º%jëh×6$day = GUICtrlCreateInput ($dd_date, 165, 10, 30, 20)
$strDay = GUICtrlRead($day)

Share this post


Link to post
Share on other sites
gcue

nothing gets passed u eh weapon?

lol

thx man

Share this post


Link to post
Share on other sites
gcue

cool thx man

Check out the Date macros too. You can do what you want without the Date.au3 stuff.

@MON & "/" & @MDAY & "/" & @YEARoÝ÷ Ø    l¡KB¶¹Qy§m¢­u«Z~º&'¶º%jëh×6$day = GUICtrlCreateInput ($dd_date, 165, 10, 30, 20)
$strDay = GUICtrlRead($day)

Share this post


Link to post
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
Sign in to follow this  

×