mardi 26 mars 2019

Ruby week number calculation issue

When I use

Time.now.strftime('%Y%W')
Date.today.strftime('%Y%W')

It returns 201912 while it should be 201913 we are in week 13.

Any clue?

Aucun commentaire:

Enregistrer un commentaire