Jump to content

Recommended Posts

Posted (edited)

Why are things that seem so simple sometimes throw curveballs?

#include <Date.au3>
Global $nTime = _NowCalc()
Global $sLastLogTime = _DateTimeFormat($nTime, "MM/dd/yyyy HH:mm:ss")
ConsoleWrite("--$sLastLogTime: " & $sLastLogTime & @CRLF)

Isn't $sLastLogTime supposed to display something like 12/22/2023 09:00:00?

Edited by NassauSky
Posted

Parameter 2 of _DateTimeFormat isn't used in the correct way.
Please have a look at the help file and you will understand what I'm talking about :)

My UDFs and Tutorials:

  Reveal hidden contents

 

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
  • Recently Browsing   0 members

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