mardi 31 mars 2015

Get name of the day

how can I get the name of the day in Ruby.


For eg. something like that:



a = Date.today
a.day_name
=> Tuesday


the only thing i could find was .wday but that only returns for the number of the day in the week



a.wday
=> 2

Aucun commentaire:

Enregistrer un commentaire