Formatting Timestamps for Readability
Format codes are placeholders within a string, which are replaced with specific values when the code is executed. In the example that you’ll be shown, you will see the following three format codes used:
%A, which will return the current weekday;
%B, which will return the current month’s full name.
Become a Member to join the conversation.