Jump to content

GUI Create Date, check if the selected Date is the current one!


WannaBeGut
 Share

Recommended Posts

Hey,

I created a Date- and Timepicker in my GUI, I can get the date I selected (GUICtrlRead), but I want to compare it with the current date. I got this far:

Func AddEntry()
   $hours = GUICtrlRead($input_hour)
   $minutes = GUICtrlRead($input_minutes)
   $seconds = GUICtrlRead($input_seconds)
   $date = GUICtrlRead($Date1)
   If @HOUR = $hours and @MIN = $minutes and @SEC = $seconds then MsgBox(0, "", "Time is right")
   
   ; @WDAY, @MON, @MDAY, @YEAR just give out number and I dont know how I can compare them with the "Monday, January 1, 2015" output

Hope you can help!

Link to comment
Share on other sites

Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html

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

×
×
  • Create New...