Added support for formatting DateTime instances to CFormatter

fixes #3023