remove leading zeros from month formatted days, a few syntax errors fixed