G
gwf
Guest
As part of a series of select queries I want to be able to test whether a field is a date. This server-side code returns false: function main () { var isthisadate = rbv_api.selectQuery('SELECT field1#value FROM object1', 1); return isthisadate[0][0] instanceof Date; } main(); And this code returns [object JavaObject]: function main () { var isthisadate = rbv_api.selectQuery('SELECT field1#value FROM object1', 1); var toString = Object.prototype.toString; return toString.call(isthisadate[0][0]); } main(); So is the result of the select query not a JS date object? How do I test whether the data type of the field is a date? Thank you, Greg
Continue reading...
Continue reading...