Hi,
I would like to set a specific date and time to the column “start_datetime” of type DATETIME by method, but I get the error:
Setting dataprovider with name ‘start_datetime’, type ‘DATETIME’ with value of wrong type 2012-01-19 01:00:00
Wrapped java.lang.IllegalArgumentException: Setting dataprovider with name ‘start_datetime’, type ‘DATETIME’ with value of wrong type 2012-01-19 01:00:00
I can set the datetime manually in a calendar field on a form without errors. if I take a look on the table data in Servoy Developer, the format of the “start_datetime” is “2012-01-19 01:00:00:000”. In the table view of pgAdmin, the format is “2012-01-19 01:00:00”.
I have tried both formats setting the datetime into the dataprovider by method without success. How should I set a datetime right that it works?
Servoy 6.0.4
PostgreSQL 9.1.2
Regards