I’m sure this must be possible, but I wouldn’t know where to start.
I need to be able to work out the date based on a number. The number is sequential, and will increase by one each day. So I can do as much as to get the number to be relevant to the number of the day of the year (i.e. Jan 1st would be day 1 etc.) But I need to be able to work out the date in ddmmyyyy format with any given number.
There are similar questions I’ve found relating to C++ and Java Script…
Can this be done in CMD?
Edit
I’ve just realised that the date will change depending on the year (i.e. leapyears)
For my script, the year will always be 2012, so I need to be able to work out the date based on the ordinal (I think thats the right way to describe it) day, for 2012 only.
Code below gets the date from the current date. It’s easy to change it to a fixed year of course.
I would love to say I wrote this all myself, but it is based on the code by Rob van der Woude. Take a look at the site. It has lots of date calculation functions all of them isolated in separate scripts instead of the fixed-purpose mess I made out of it. 😉