I have used the following code to find the second Sunday of march.
lastdate_of_march = Date.new(current_year, 3, 31)
i = lastdate_of_march.wday
second_sunday = Date.new(current_year, 3, (31-i))
is there any simple method to find Second Sunday of March.
If any ! knows kindly help me..
|formal argument cannot be a constant||4|
|Win32::Screenshot 0.0.8 Released||0|
|Why aren't string literals treated similarly to symbols?||9|
|RubyInstaller 1.9.3-p0 released||2|
|install ruby1.9 on redhat3||2|
|On Mac: File.file? behaves strangely||2|
|Local and Global Variable||3|