i run a query which is giving me following results
but when i am trying to console it using JavaScript this is giving me one minus date from the results.