Hello,
I use mysql as database. My current select is this:
select
ID ,
DATE_FORMAT(Startdate, '%Y%m%d')as Start_Date,
room as roomnumber
from reservations
I have the following question:
Is it possible to create this with Resultset fields in combination with Date_format.
ResultsetFields fields = new ResultsetFields(2);
fields.DefineField(reservationsFields.Id, 0);
fields.DefineField(reservationsFields.Startdate, 1, "Start_Date");
fields.DefineField(reservationsFields.room , 2);
Where or how is it possible to add dateformat '%Y%m%d' as result ?
My result in the datatable must be like this:
ID --> 25
Start_Date --> 2008-12-17
room --> Room 17
Kris