valid_date?(p1, p2, p3, p4 = v4) public

Returns true if the given calendar date is valid, and false if not.

Date.valid_date?(2001,2,3)        #=> true
Date.valid_date?(2001,2,29)       #=> false

See also jd and civil.

Show source
Register or log in to add new notes.