Recent content by Datefirst

  1. D

    Question calculate week number in "C"

    Thanks, i'll try it. Looks okay... Datefirst
  2. D

    Question calculate week number in "C"

    Thanks for the reply, Cecil. Yes, I have tried ChatGPT a few times. It's something I do not want to pursue right now. ChatGPT just gives out the bare basics. You see, there are a lot of rules , so to speak, that you must follow, I'm finding them out bit by bit the hard way. ChatGPT is in a...
  3. D

    Question calculate week number in "C"

    I am looking for "C" code that correctly calculates the week number for any year, given any date as input. I using the western style approach. Where sunday is my first day of the week. In calculating the week number, there are a lot of rules and offsets to be aware of. Some of which I don't...
Top