Now let's try and get the date time that the job was posted onto Craigslist, which is inside of this
time element.
The HTML time with the date time attribute.
And I think we can use this date time attribute to create a new JavaScript date object.
Now notice that the time is inside of result info so we can use the same each loop that we used before
and just select the time element instead of our result.
Info A result title class.
So let me just right time and then we get the date time attribute instead of text.
So.
And now we have the time that every job was posted.
And again, we can just paste this code inside of our NodeJS project and it's going to run exactly the
same as the Chrome console.
So now I just added the element children with the selector inside of the NodeJS project.
And then I can just add the object into my scrape result and we will have the date.
I think I will also want to create this into a JavaScript object.
Actually, let me just add it first.
All right.
New date to make it into our JavaScript object.
And then we should have a JavaScript object with the date that the job was posted.
Let's try and run the code with NodeJS and we can see the date posted is the date the job was posted.
Okay, so that was it.