Fix depreciated usage of DATE methods