[progress Communities] [progress Openedge Abl] Forum Post: Result Of Select Query For Date...

  • Thread starter Thread starter gwf
  • Start date Start date
Status
Not open for further replies.
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...
 
Status
Not open for further replies.
Back
Top