Created
March 14, 2014 16:09
-
-
Save vajradog/9550833 to your computer and use it in GitHub Desktop.
formatting date to words in rails
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= applicant.start_date %> gives out 2014-04-14 | |
<%= applicant.start_date.strftime("%B %d, %Y") %> gives out April 14, 2014 | |
<%= applicant.start_date.strftime("%B #{applicant.start_date.day.ordinalize}, %Y") %> gives out April 14th, 2014 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment