Manufacture code date to calendar date help
Posted: 22 Mar 2018, 20:38
Working on GUI to convert a manufacturing code to the actual calendar date. Don’t know where to even start to convert the code date?
We receive goods that have a 4-digit code: 7001
- the first digit will always be the year, so the example above is 2017
- the next 3 digits represents the Julian Date of the year, above example is January 1st
So 7001 is January 1, 2017
7235 would be August 23, 2017
Currently I’m using a paper table to find the calendar date. Was wondering if Ahk could do this more quickly?
Would have to pay attention to leap years and the days change. Also the function would not go back more than 3 years so when we get to the year 2020 that it would not give a result of 2010 if the code is 0001.
Here is a table with the Julian Date
https://www.fs.fed.us/fire/partners/fep ... lendar.pdf
Thanks in advance for the great help that this forum provides
We receive goods that have a 4-digit code: 7001
- the first digit will always be the year, so the example above is 2017
- the next 3 digits represents the Julian Date of the year, above example is January 1st
So 7001 is January 1, 2017
7235 would be August 23, 2017
Currently I’m using a paper table to find the calendar date. Was wondering if Ahk could do this more quickly?
Would have to pay attention to leap years and the days change. Also the function would not go back more than 3 years so when we get to the year 2020 that it would not give a result of 2010 if the code is 0001.
Here is a table with the Julian Date
https://www.fs.fed.us/fire/partners/fep ... lendar.pdf
Thanks in advance for the great help that this forum provides