#2 The next thing the son will yell is "IT'S WORKING AND I HAVE NO IDEA WHY" #13 There is no such thing as "clean code", there is only "somewhat cleaner code"
Golden, As that's just limited to one locale/region. Always store a date as YYYYMMDD and then display it in whatever your local date format is - then your code will work globally. By storing in that YYYYMMDD it is then easy to sort and display in forward or reverse date order too
#2 The next thing the son will yell is "IT'S WORKING AND I HAVE NO IDEA WHY" #13 There is no such thing as "clean code", there is only "somewhat cleaner code"
Golden, As that's just limited to one locale/region. Always store a date as YYYYMMDD and then display it in whatever your local date format is - then your code will work globally. By storing in that YYYYMMDD it is then easy to sort and display in forward or reverse date order too
The next thing the son will yell is "IT'S WORKING AND I HAVE NO IDEA WHY"
#13
There is no such thing as "clean code", there is only "somewhat cleaner code"
What about mm dd yy?
As that's just limited to one locale/region. Always store a date as YYYYMMDD and then display it in whatever your local date format is - then your code will work globally. By storing in that YYYYMMDD it is then easy to sort and display in forward or reverse date order too
99 Little Bugs in my Code.
Take one down. Patch it around.
127 Bugs in my Code.