Hello friends!
I need some help over here. So I have pre-existing data the column A of a spreadsheet this data is exactly a date looking like this (Nov 23, 2021).
I added a Script that runs over column A and compares the existing data with a given date filter anything that is after or equal to Jan 1, 2022, if the dates match to be after or equal to Jan 1, 2022 the script will save it in a new array and then paste it back on the spreadsheet.
Everything is happening as I explained but the dates are being pasted back in this format 11/23/2021 3:00:00 instead of the original way they were Nov 23, 2021 the only thing that I want to get rid of is the hour section 3:00:00
Why is this happening, how can I fix it?
This is the code section block
asinRawData.forEach(function(item,idx){
if(new Date(item[0])>= new Date("Jan 01, 2022")){
asinFilteredArray.push(item)
}
I am more than grateful for any help you may provide.
Regards,