Use to_timestamp instead of to_date function for PostgreSQL for tasks an...

...d tasks_results tables

  - added toDate function to Compatibility
  - modified DAOs in tasks-lib to use the compatibility function