date: use strbufs in date-formatting functions