Version: Pervasive 10.30
Problem: I need to change DateTime column values from mm/dd/yyyy into dd/mm/yyyy
update with set=2011/01/01 is working good
1 step was to create 2nd table and copy all data, in 2nd step i want to convert exisiting date format into new one. I am using this statment i found somewhere in this forum:
update test
set data= select convert(day(datac),SQL_CHAR) + '/' + convert(month(datac),SQL_CHAR) + '/' + convert
(year(datac),SQL_CHAR) from Table where id=1
where test.id=2
Error:[LNA][Pervasive][ODBC Engine Interface]Invalid date, time or timestamp value.
Can someone point me where i made errors?