Chaudhary Prakash Chaudhary Prakash - 4 months ago 7
Ruby Question

how to get 3 week date information using specified date

i am using static day like monday,Tueday,friday and friday.
how to get 3 week date after 3 week date..select specified day get 3 week date information.
like select monday then get 11/07 , 18/07, 25/07

Answer

Try this code:

DateTime.parse("Monday")
DateTime.parse("Monday") + 7
DateTime.parse("Monday") + 7 + 7