Format generator for momentjs