Answer the question
In order to leave comments, you need to log in
How to get day or month from date in Rails?
I store date of format dd.mm.yyyy in the table of String format.
Am I doing the right thing?
And if so, then I want to display the day, month or year from a specific date.
How can I do that?
Answer the question
In order to leave comments, you need to log in
Sorry, after this question ( Judging by the questions in the Rails topic, people just don't read manuals? ) I'm ashamed to read in the mail that they ask me to help, as an expert in this matter :) Have you
tried searching here ?
date = Time.now
date.day ==> day
date.month ==> month
And so on. It's all in the docs ;)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question