Format Characters Used By The Strftime() Function For Year

 
Character Description
%g        Two-digit year for ISO-8601 week of the year.
%G        Four-digit year for ISO-8601 week of the year.
%y        Two-digit year.
%Y        Four-digit year.

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.