Difference between revisions of "Presage/Internal:Great American Date Codes"
Hheffelbower (talk | contribs) |
Hheffelbower (talk | contribs) |
||
Line 5: | Line 5: | ||
*The 'N' stands for Nampa. The Monroe plant's initial character is 'M'. | *The 'N' stands for Nampa. The Monroe plant's initial character is 'M'. | ||
*The 'F' stands for the month of June (controlled by the first case statement). | *The 'F' stands for the month of June (controlled by the first of the nested case statement). | ||
*The '05' is the day of the month formatted as a two-digit day using the format '%d'. | *The '05' is the day of the month formatted as a two-digit day using the format '%d'. | ||
*The '7' is the last number of the four-digit year using the RIGHT command to find the first digit on the right of the number, using the format '%y'. | *The '7' is the last number of the four-digit year using the RIGHT command to find the first digit on the right of the number, using the format '%y'. | ||
*The 'J' represents the time between midnight and 2 a.m. (controlled by the second case statement). | *The 'J' represents the time between midnight and 2 a.m. (controlled by the second of the nested case statement). | ||
*Finally, the '1' indicates the line number within the plant where the product was produced. | *Finally, the '1' indicates the line number within the plant where the product was produced. | ||
{{Code|text=(SELECT <br> | {{Code|text=(SELECT <br> |
Revision as of 15:56, 8 June 2017
Great American [Appetizers] Snacks has unique date codes for their packaging.
The Wahoo Date Code
The Wahoo code is used in both the Nampa and Monroe plants for a number of analysis. For a date of 2017-06-05 00:15:01 (produced on Line 1 in the Nampa plant), the Wahoo Code would display as 'NF057J1'
- The 'N' stands for Nampa. The Monroe plant's initial character is 'M'.
- The 'F' stands for the month of June (controlled by the first of the nested case statement).
- The '05' is the day of the month formatted as a two-digit day using the format '%d'.
- The '7' is the last number of the four-digit year using the RIGHT command to find the first digit on the right of the number, using the format '%y'.
- The 'J' represents the time between midnight and 2 a.m. (controlled by the second of the nested case statement).
- Finally, the '1' indicates the line number within the plant where the product was produced.
(SELECT CASE CONCAT('N', |
Best Before/Meilleur Avant 2018 JN05 NF057J1