I have created a query in SQl Designer from an Oracle database and the datetime field is now reading as a string field, so to convert it back, I am using the following formula, but it says too many parameters have been given to the function.
stringVar MyYear := Mid ({Query.DATETIME},1,4 );
stringVar MyMonth := Mid ({Query.DATETIME},6,2 );
stringVar MyDay := Mid ({Query.DATETIME},9,2 );
dateVar MyNewDate := Date (MyYear,MyMonth,MyDay);
Any ideas?
stringVar MyYear := Mid ({Query.DATETIME},1,4 );
stringVar MyMonth := Mid ({Query.DATETIME},6,2 );
stringVar MyDay := Mid ({Query.DATETIME},9,2 );
dateVar MyNewDate := Date (MyYear,MyMonth,MyDay);
Any ideas?