To know the Year, I use <%= Time.now.year %>
<%= 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