Last answered:

23 Sept 2022

Posted on:

10 Aug 2022

1

Part 2 date format question

Why does the employees hired date include %2000% in the answers document, if the format is Year-Month-Day? Wouldn't 2000% work?

2 answers ( 0 marked as helpful)
Instructor
Posted on:

12 Aug 2022

2

Hi Justin!
Thanks for reaching out.

Yes, you are right. The '%' wildcard is needed only after 2000. As this will give you as a result only dates from year 2000. Fine.

Note: It is added from both sides because if someone uses a different date format, it wil still work. It is somehow more profesionally and companies make their code to be more user friendly.

Hope this helps.
Best,
Tsvetelin

Posted on:

23 Sept 2022

0

Just looked up the reply as well.

Thanks so much!

Submit an answer