View previous topic :: View next topic
|
Author |
Message |
ramsri
Active User
Joined: 18 Oct 2008 Posts: 380 Location: India
|
|
|
|
Would you please give me the code to convert a date in YYYYMMDD format to day of week. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
What research have you done yourself already?
When you say you want "the code" -- are you talking COBOL? SAS? JAVA? PL/I? ASSEMBLER? FORTRAN? REXX? CLIST? Something else entirely?
Finally, this is a HELP forum, not a DO-YOUR-JOB-FOR-YOU forum. We can help you with coding problems, but we don't provide code unless you are willing to pay the going daily rate for professional consulting (typically about 1000 U.S. dollars per day). |
|
Back to top |
|
|
ramsri
Active User
Joined: 18 Oct 2008 Posts: 380 Location: India
|
|
|
|
When I typed, I typed more than a single line that has appeared here !!!
I was looking for a SORT and COBOL intrinsic functions that could do this.
Thanks. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Google is your friend. What you are looking for is called "Zeller's Congruence" and Googling zeller's congruence returns 13,700 hits and several on the first page will give you the exact formula to use. It is easily implemented in COBOL or any other procedural language. |
|
Back to top |
|
|
|