i think date handling is a little complex.
so, i want to know if there is any elegant algorithm that i can get any dates in my condition like the third friday's date in sep 2020?
let's specify two method i want:
int get_date(int month, int weekday, int no) { // for example: get_date(202009, 3, 3)
// should return the third wednesday in sep 2020, it's 20200917
}
int date_sub(int date1, int date2) { // for example:
// date_sub(20200928, 20200925) should return 3
}
i know boost have some nice things, but i think it may too heavy, is there any better choice?