Im stuck on a problem and would appreciate any help. I have read through lot of the discussions already but they dont seem to work for me.
//I have a date a
I know this is in the above answers, but my point is that I think all you need is
new Date(collectionDate);
if your goal is to convert a date string into a date (as per the OP "How do I convert it to a date object?").