From the course: Building Production-Ready React Apps: Setup to Deployment with Firebase

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

Set documents with images: Set the date

Set documents with images: Set the date

- [Instructor] So we finish with a little bit of front end. So now we have images, so that's great. So what I'd like to do is to display the date properly. We're going to add a few data, like the date on one side and also the user information on the right which is not yet available, but we are already preparing a spot just to display the username information. So once we are ready to display the user, the author name, it's going to be showing right here. So let's go back, and right here you have the date, so basically we're going to use the split method that we must use on a string object. So I'm going to wrap all of this within this operator, and then I'm going to use split. I'm going to separate every word into an array. And for this, if we look at this, so when you display, I no longer have access to it, but remember that we had first the day of the week, then you had the month, finally the date and the year. So…

Contents