We can get the current date using the combination of different Date macros - @MDAY, @MON and @YEAR.
Example:
Example:
#include <MsgBoxConstants.au3>
;Display current date in dd-mm-yyyy format
MsgBox($MB_SYSTEMMODAL, "Date", @MDAY & "-" & @MON & "-" & @YEAR)
;Display current date in dd-mm-yyyy format
MsgBox($MB_SYSTEMMODAL, "Date", @MDAY & "-" & @MON & "-" & @YEAR)
- AutoIt - Get Current Date
- AutoIt - Get Current Day of Month
- AutoIt - Get Current Month
- AutoIt - Get Current Year
- AutoIt - Get Current Week Day
- AutoIt - Get Current Day of Year
- AutoIt - Get Current Hours
- AutoIt - Get Current Minutes
- AutoIt - Get Current Seconds
- AutoIt - Get Current Milliseconds
Interesting? Share and Let Others Know.
Post a comment