deprecate self invented date class