From: Matthew Kerwin Date: 2013-02-23T07:19:53+09:00 Subject: Re: Difference of 2 dates interms of years. Xavier R. wrote in post #1098506: > Could you suggest any other technique please? Here's a strategy that might work: * Read the error message. * Lea el mensaje de error. * エラーメッセージを読んでください。 * Прочитайте сообщение об ошибке. * Basahin ang mga mensahe ng error. * 阅读错误信息。 * Lue virheilmoitus. دفعات بازدید: پیام خطا * * Baca pesan kesalahan. * Διαβάστε το μήνυμα σφάλματος. (Apologies to native speakers if I got anything wrong in the above, no offence intended.) Additionally: read and comprehend our responses. You said: > Yr = #{days}/ 365 > > but not working. How "not working"? Is there an error message? Can you read the message? Can you copy-and-paste the error message into Google and see what you can discover by yourself? Can you look up basic Ruby syntax and work out what's wrong with the line you posted? If required, can you copy-and-paste relevant messages or results into translate.google.com to try and elucidate meaning therefrom? Is it functioning, but producing a result other than what you expected? Can you dig a bit deeper, using hints provided by some of us in earlier posts to explore what your program is doing at every step? And maybe work out the point at which it deviates from your expectation? On this issue I will say no more. -- Posted via http://www.ruby-forum.com/.