Javascript utilities for formatting and updating dates in FT style