Ruby on Rails
Thursday, September 10, 2015
Hello
1. Get the week number for the date passed and current date.
2. Now check if date passed week number < current date week
then it is passed
else if both same then
it is current week
else if greater then
it is future week
thanks
On Thu, Sep 10, 2015 at 6:43 PM, Gm <javaplayer@gmail.com> wrote:
Hi,--I need to know if a week has passed or if it's next weekBased on a rangFor example:31/08..06/09 past07/09..13/09 current14/09..20/09 futureThanks.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/0c9bb70a-7f75-456b-8f20-d91d30923f96%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAJMzsO9Q-N-2FfH9yLOPuS%2BVbZg%2B7E5FAnwdJ1tScSGpkZuHaQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment