English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i'm from Ukraine so i don't know English very well
please explain me how to write date in copybook
just write an example how to make out it
thank you

2006-09-21 07:04:21 · 4 answers · asked by Anonymous in Education & Reference Homework Help

4 answers

by copybook, are you referring to a "layout mask" in programming? If so, it would depend on the application. I've found that most like the 'YYYYMMDD' format as this will order your data properly from most recent to oldest, where something like 'MMDDYYYY' will not, and will sort the data by month, regardless of year. Hyphens, such as YYYY-MM-DD are good for this, as well, and more easily allows manipulation of days or months. As a COBOL programmer, I usually format as:

05 WS-DATE.
10 WS-YEAR PIC X(4).
10 WS-MONTH PIC X(2).
10 WS-DAY PIC X(2).

This way, I can move the system date to WS-DATE, and if I need to change to three months back, I subtract 3 from WS-MONTH. But be cautious that you must handle days greater than 28 with a special routine since they can be 28, 29, 30, or 31.

2006-09-21 07:17:47 · answer #1 · answered by Anonymous · 0 0

There are many correct ways.

9-21-06 Is September 21, 2006. 9/21/06 is OK too. Just remember, in the U.S. we usually put the month first, then the number date, followed by the year.

2006-09-21 15:13:39 · answer #2 · answered by Patti C 7 · 0 0

There are multiple ways to right the date.
Examples using today's date...
Thursday, September 21, 2006
September 21, 2006
9/21/06
09/21/2006
the 21st of September, 2006

I'm not sure which one you need...

2006-09-21 14:08:29 · answer #3 · answered by mminuyasha 3 · 1 0

monday 1st january or 1/1/06

2006-09-21 14:08:07 · answer #4 · answered by Anonymous · 0 0

fedest.com, questions and answers