Flowdock
method

valid_date?

Importance_1
Ruby latest stable (v1_9_3_392) - 0 notes - Class: Date
valid_date?(p1, p2, p3, p4 = v4) public

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

For example:

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.