use date in place of dayofyear; other format tweaks.