Posts: 13
Threads: 0
Likes Received:
16 in 11 posts
Likes Given: 11
Joined: Nov 2023
Reputation:
5
Hello z-s,
I looked at your Golden Project: calandar.
This program needs a makeover, i did some tests which gives wrong anwers:
1. For today 2024-03-20 your program gives Tuesday, but it is Wednesday.
2 For the consecutive days 2024-02-29 and 2024-03-01 both are Thursday !
3. For the last day of 2023 (23023-12-31) the program gives NO answer.
Some hints:
check if the input numbers are in the allowed range (month 15 or day 99) are accepted now)
You can replace all 93 lines for the calculation of d with one line, look at the Math.Remainder() function
Also for the calculation of b from the year with some attention for leap years.
HTH
Posts: 327
Threads: 37
Likes Received:
119 in 94 posts
Likes Given: 220
Joined: Dec 2023
Reputation:
7
Ok I Will See It In Next morning
till see this:https://litdev.uk/mybb/showthread.php?tid=42
Posts: 327
Threads: 37
Likes Received:
119 in 94 posts
Likes Given: 220
Joined: Dec 2023
Reputation:
7
Sorry @WhTurner For So Much Late Reply.
The Software I Think Throw It In Trash As I Really Don't See Any Good programing In It I Simply Made It For My Date Calculation Software.
ZS