Eliminate dependency on datetime_format in Grain engine.