Cuberite Forum

Full Version: [DONE] Getting day, month, year into variables in cmd (win)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
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
Nice. Although it is locale-dependent, I don't really mind because I'll be running it only on one single machine.