[DONE] Getting day, month, year into variables in cmd (win)
#1
In order to update my windows build server, I need to find a way to "name" the builds properly so that they sort well. For that, I'd need the value of day, month and year in environment variables. Does anyone know how to do that easily?

Thanks in advance.

For nitpickers: I cannot use Jenkins because my VPS doesn't support Java.
Reply
Thanks given by:
#2
You could maybe use %date% and %time% somehow. At this moment if I use:
Code:
echo %date%
echo %time%
I would get
Quote:ma 29-07-2013
16:01:48,56
Reply
Thanks given by:
#3
Nice. Although it is locale-dependent, I don't really mind because I'll be running it only on one single machine.
Reply
Thanks given by:




Users browsing this thread: 3 Guest(s)