how can I get the name of the day in Ruby.
For eg. something like that:
a = Date.todaya.day_name => Tuesday
the only thing i could find was .wday but that only returns for the number of the day in the week
.wday
a.wday => 2
Aucun commentaire:
Enregistrer un commentaire