Huh. DATE /T here returns "Fri 13/11/2020", even though my local short date format is M/d/yyyy. DATE really should be using the local date format. Never noticed that — I never use DATE /T for anything.
According to the help file, there's a /F option to specify the date format. That doesn't seem to do anything for me.
DATE does not use the Windows date formatting string (it used to years ago and we got constant complaints from people who didn't like the default Windows string but didn't want to change it).
You can use the /Fn option to choose from some predefined formats; If you want a custom format, DATE supports any conceivable format you can imagine.
Which are... ? Help only shows four as predefined in /F (and I'd kinda like to know what shiRt I can pull that DATE will accept, if only to keep up with the dumb things some people on certain workplace do to represent dates in our (I mean, someone's) database.
While we're at it.... since NTFS has supported milliseconds in the timestamp for a long time now, will TIME take milliseconds as well?
Which are... ? Help only shows four as predefined in /F (and I'd kinda like to know what shiRt I can pull that DATE will accept, if only to keep up with the dumb things some people on certain workplace do to represent dates in our (I mean, someone's) database.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.