Skip to content

Instantly share code, notes, and snippets.

@michaelminter
Created July 2, 2011 18:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelminter/1061472 to your computer and use it in GitHub Desktop.
Save michaelminter/1061472 to your computer and use it in GitHub Desktop.
Ruby: How to get day / month names from date
day = Date.today
Date.constants
>["MONTHS", "ABBR_DAYS", "DAYNAMES", "ENGLAND", "DATE_FORMATS", "PARSE_DAYPAT", "ABBR_MONTHNAMES", "ABBR_MONTHS", "ITALY", "PARSE_MONTHPAT", "MONTHNAMES", "GREGORIAN", "DAYS", "ZONES", "ABBR_DAYNAMES", "JULIAN"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment