Agreed! FWIW, I did realize that there are those issues with my example and that the post would be improved by using a better one (in addition to using multiple examples instead of just a single one). But I had trouble thinking of good examples and knew of the current one from here.
In that example I see that the actual format is yyyy/mm/dd rather than yyyymmdd. I definitely don’t like the name yyyymmdd in that case; to me it suggests no separators. (I might advocate for switching to yyyy-mm-dd and using a name like currentDate_iso8601, though that’s a bit unwieldy.)
Agreed! FWIW, I did realize that there are those issues with my example and that the post would be improved by using a better one (in addition to using multiple examples instead of just a single one). But I had trouble thinking of good examples and knew of the current one from here.
In that example I see that the actual format is
yyyy/mm/dd
rather thanyyyymmdd
. I definitely don’t like the nameyyyymmdd
in that case; to me it suggests no separators. (I might advocate for switching toyyyy-mm-dd
and using a name likecurrentDate_iso8601
, though that’s a bit unwieldy.)Ah. I didn’t even notice that but that’s a great point. I also think that
yyyymmdd
suggests no separators.