[DONE] Getting day, month, year into variables in cmd (win) - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html) +--- Forum: Development (https://forum.cuberite.org/forum-13.html) +--- Thread: [DONE] Getting day, month, year into variables in cmd (win) (/thread-1203.html) |
[DONE] Getting day, month, year into variables in cmd (win) - xoft - 07-29-2013 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. RE: Getting day, month, year into variables in cmd (win) - NiLSPACE - 07-30-2013 You could maybe use %date% and %time% somehow. At this moment if I use: Code: echo %date% Quote:ma 29-07-2013 RE: Getting day, month, year into variables in cmd (win) - xoft - 07-30-2013 Nice. Although it is locale-dependent, I don't really mind because I'll be running it only on one single machine. |