jmespath.js
jmespath.js copied to clipboard
Date comparaison fails when the field is a Date Object
(more details will be soon provided)
Just discovered this myself when trying to filter the results of S3.listObjectsV2 by the LastModified date within the Contents
A quick hack like this works... not the best solution...
data.Contents.forEach((item) => {
if (item.LastModified) {
item.LastModifiedString = item.LastModified.toISOString();
}
})
Now I can do a >= comparison against Contents[?LastModifiedString]