3 Replies Latest reply on Aug 22, 2008 4:27 PM by justria

    Date Object Question


      I am attempting to read a selected date chosen from a datefield and then use that date to run a query against a database. The database I'm using requires the date to be in the format of YYYY-MM-DD. The answer is probably right in front of me in all the posts I've seen, but I'm not making the connection. How do I convert the native date from this format Tue Aug 12 00:00:00 GMT-0700 2008 to one of YYYY-MM-DD and keep it as a date object and not as a string?