Message Boards Message Boards

9
|
5463 Views
|
0 Replies
|
9 Total Likes
View groups...
Share
Share this post:

Happy palindrome day 9102019 . . . well, for most of the world :-)

In my country, Ukraine, when people write a date on paper they start from day, followed by month, and then year. They would omit any zeros if a single digit can be used for a month or a day. So today would simply be 9-10-2019. This is obviously a palindrome, which is a good occasion to show off some relevant Wolfram Language functions. A computer would "understand" that today is indeed a palindrome in the following way:

In[]:= PalindromeQ[DateString[Today,{"DayShort","MonthShort","Year"}]]
Out[]= True 

PalindromeQ is a nice function! And DateString is a very powerful one :-) The curious case of today's palindrome was picked up by some social media but not American one. That's why obviously:

enter image description here

US is the only country to insist on using mm-dd-yyyy for some quite exhaustively discussed reasons - see The Guardian for instance.

enter image description here

But don't despair, our American friends had their palindrome a month earlier:

enter image description here

They even had their palindrome week-&-a-bit (10-days) if you write the year in a short way, what a nice unique gem for countries accepting a rare date notation! Let's explain to computer the curious case of palindrome week-&-a-bit:

enter image description here

Well, happy palindrome date wherever you are - enjoy it till it lasts :-)

Attachments:
POSTED BY: Vitaliy Kaurov
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract