mercredi 17 juin 2020

How to check if today is monday?

To know the Year, I use <%= Time.now.year %>

So I can check the year using <% if Time.now.year == 2020 %>You are living the 2020!<% end %>

But... how to check if today is monday? or sunday?

Aucun commentaire:

Enregistrer un commentaire