fix dateformatmod to work with reverse=true
Merge commit '4412a71f63dae45e9dd707e32c9e5ff2965a18e5' into HEAD