Abstract out resource date handling.