Added initial support for specifying a format for the value.
Currently only simple text and datetimes are supported.