fix dateformatmod to work with reverse=true