Move internal date time functions to FormHelper class.