in a week
First day of a year must be Monday. Then, what a 'k' day fits to 'n' day of a week (Monday, ... , Sunday)
Maybe the time.h header can help you
Обсуждают сегодня