use formatting library

How about using a formatting library instead of a raw Date object?