Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

COBOL Programming :: RE: How to find the first monday of the week.

$
0
0
Author: abdulrafi
Posted: Mon Nov 28, 2016 10:31 am (GMT 5.5)

Dear Akatsukami,

I went by your logic, "get Sunday from (week-1)*7, then add 1 to get Monday".


For ex: 47th week is from 21st Nov to 27th Nov. So I calculated it as,
(47-1)*7 = 322, then added 1,= 322+1 = 323. This 323rd day is Nov 18th which is Friday.

Please let me know if I am missing something here.
_________________
Thanks,
Abdul Rafi


Viewing all articles
Browse latest Browse all 8500

Trending Articles