better parsing/validation of decimal and datetime fields