Test date validity

Is there a way to test the validity of a date other than

function test_date(y::Int, m::Int, d::Int)::Nullable{Date}
        return Nullable{Date}(Date(y, m, d))
        return Nullable{Date}()

Seems like there should be a simple test function?

See Dates.validargs.

Hmm, can’t find it :confused:

sorry, only in v0.6. In v0.5.2, look at @edit Date(2000,1,1), and you can construct a test using the source which has not been factored out in that version.

Oh great, ok. I’m on Version 0.6.0-dev.1393 but I’ll gladly update! Thanks