FETCHXML dates and Javascript? RRS feed

  • Question

  • I am trying to inject a date into a javascript FETCHXML query to return all the users that have accessed the system:

    var datetime=new Date();
    var time=datetime.toISOString();

    fetchXml += "<condition attribute='new_user' operator='eq' value='79C7C9377275E41183987446A0F424F8' />";
    fetchXml += "<condition attribute='new_accessdate' operator='eq' value='"+time+"' />";

    I am making a mistake here, as I can't inject the date and no results are returned.

    Does anyone know what I am doing wrong?

    Friday, February 13, 2015 5:10 PM

All replies