I've found a couple of posts about this but everybody always uses some libraries I'm just curious does anybody have any idea for how I can do this without using any libraries? Because I'm doing some exercise in this book and I built a date class that has members year month and day and now I have to change the class to basically be the days since epoch.
Seems a little hard though cuz like Jan has 31 days then feb(it says to exclude leap years) has 28 march has 31 and yeah it just seems a little hard to do this does anybody have any ideas?