Jump to content

Date stamp


Spongey
 Share

Recommended Posts

  • Moderators

How do you return the current date stamp?

Thanks.

Spongey

Of what?

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

  • Moderators

I'm creating an automation script that needs the curent date of the windows server it's running on so it knows which control file to read for that particular date.

Thanks.

And _NowDate() doesn't do it for you?

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

Also look into HelpFile at these macros:

@HOUR Hours value of clock in 24-hour format. Range is 00 to 23

@MDAY Current day of month. Range is 01 to 31

@MIN Minutes value of clock. Range is 00 to 59

@MON Current month. Range is 01 to 12

@SEC Seconds value of clock. Range is 00 to 59

@WDAY Numeric day of week. Range is 1 to 7 which corresponds to Sunday through Saturday

@YDAY Current day of year. Range is 1 to 366 (or 365 if not a leap year)

@YEAR Current four-digit year

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...