added the type parser for date to pg addon