move date extension to classes