Page 1 of 1

Date format with PIC s9(07)

Posted: Fri Oct 14, 2011 12:33 pm
by shrutijain1984
Hi,

Could you please let me know how the date will stored in the following variable

ws-date pic s9(07).

Will it be YYMMDD or will it be in Julian format YYYYDDD?

Please dont ask me to read manuals as I urgently need reply to this

Posted: Fri Oct 14, 2011 1:40 pm
by dbzTHEdinosauer
which date?

your urgency has nothing to do with us.

you are being paid,
we are answering for free.

suggest you look for a new line of work.

Posted: Fri Oct 14, 2011 7:21 pm
by DikDude
Could you please let me know how the date will stored in the following variable
Probably not. . . You need to look in the code that places a date in the field to see how the date is arranged. You may need to back up to the code where the date is initially placed in the field.

FWIW - forums do not do "urgent". . .

Posted: Sat Oct 15, 2011 4:05 pm
by Anuj Dhawan
I suspect, it should be Julian.

PS. May be an answer you wanted to listen!

Posted: Sun Oct 16, 2011 8:21 am
by DikDude
Might be Julian (yyyyddd or 00yyddd), might be a 6-digit Gregorian (0yymmdd or 0mmddyy) or something "custom" (xmmddyy/xyymmdd) where x = some magic code for which century). Lots of places did thngs like this to get around changing field lengths for y2k. . .
Please dont ask me to read manuals as I urgently need reply to this
I forgot to mention this before.
If it was easily available in some manual, we would surely have told you to look there. This will probably be in no manual except one that originated in your organization describing how this date is stored. With a bit of luck all dates are stored in the same format - otherwise each will need to be researched.

Unfortunately, the entire answer is in code or documentation on your system.