1 Reply Latest reply on Mar 5, 2017 11:31 PM by Ankit Gupta RSS
    aelgov Apprentice

    Error parseDate - Invalid format: "1488722317000" is malformed at "7000"

    Hi,

     

    I don't know what went wrong but I'm trying to do something very simple.

    I have infotable with DateTime column, I want to run over it and parse the date.

    I get an error for the following code:

     

    var tableLength = result.rows.length;

    for (var x = 0; x < tableLength; x++) {

     

        var row = result.rows[x];

         //"yyyy-MM-dd HH:mm:ss.SSS";

        var dateFormat = Resources["RuntimeLocalizationFunctions"].GetEffectiveToken({token: "dateTimeFormat"});

        var dateValue = parseDate(row.DateTime, dateFormat);

    }

     

    I also tried to do toString to row.DateTime and it didn't work