make date invocation more compatible