[date] code generator for strptime formats