my blog is abt wht i have learnt technically, mostly in Ruby on Rails, Javascript, node.js
hope this share a little bit of info & adds a bit stuff.,
Thanks.
Sunday, October 3, 2010
Weekday or not..
You can Use this ,
def weekday? (1..5).include?(wday) end
check ..
d = Date.today => Mon, 04 Oct 2010 d.weekday? => true d = Date.today - 1 => Sun, 03 Oct 2010 d.weekday? => false
No comments:
Post a Comment