Blogs

2 digit year for year 2040

By Anitha Ravula posted 11-10-2020 16:47

  
Need help with receipt function

Date format from Scanner and PC are being accepted differently. Some of the receipt transactions are failing while performing on scanner gun device

My code has variable setup with 4 digit year as shown below

V_ExpiryDt
FormatDateStr(F_ExpiryDate,"DD-MMM-YYYY","MM/DD/YYYY")


Input to the receipt function from my PC

jdLotExpirationDate_MMEJ 12/31/2040

Output of the function

jdLotExpirationDate_MMEJ 2040/12/31

_________________________________________________________________________

Same PO # received from Scanner gun device

jdLotExpirationDate_MMEJ 12/31/40

Output of the function

jdLotExpirationDate_MMEJ 1940/12/31

I checked date setting on the scanner gun device (Shown below). I didn’t see an option to change it to 4 year date.

0 comments
10 views

Permalink