[sec] Add another method for date detection
[sec] Add another method for date detection

Also improve error reporting when date detection fails

lukerosiak/inspectors-general,divergentdave/inspectors-general