Dates in autosearchfields
Hi.
I was reading some answers about calling a report with date in autosearch
parameter. I'm using RBuilder Server 9.03 and I'm having the same problem.
If I use a date for example 2008-7-1-0-0-0 (yyyy-m-y....) the
report.autosearchfield[0].searchexpression is 01/08/2008 dd/mm/yyyy (it's
adding a month to the search).
Is there a solution to that situation?
Thank you
I was reading some answers about calling a report with date in autosearch
parameter. I'm using RBuilder Server 9.03 and I'm having the same problem.
If I use a date for example 2008-7-1-0-0-0 (yyyy-m-y....) the
report.autosearchfield[0].searchexpression is 01/08/2008 dd/mm/yyyy (it's
adding a month to the search).
Is there a solution to that situation?
Thank you
This discussion has been closed.
Comments
That is a quirk of the current implementation - it was done to accomodate
Javascript. In Javascript the Date encoding for the month is 0 based. (I do
not understand why Javascript does this).
For RB 11, the date handling has been redesigned and the webtier will no
longer will add one to the month that is passed. (We rewrote the Javascript
to handle to the quirk on that side).
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
I must upgrade RBServer to the latest version