Beautiful.
And the first thing that I want to do in my job component is to format our data, so our final project
is going to have this type of format.
And at the moment, we already know that the value that we're getting back from Mongolia could be.
More specifically, I'm talking about creating that.
It's nothing like this.
And in order to format this, we use a package by the name of Moment Jess.
Now I'm just going to show you my setup.
Essentially, what I'm going to use as far as the formatting option.
But if you want to find out more details, I will leave the link and description so you can always navigate
back to the docs and look for your specific use case.
And essentially, the setup is going to look something like this where we want to stop server.
Then the docs are over here at the link and we want to navigate the client and install moment Jess.
And we do that by going npm, install and moment.
So let me stop server right now or clear everything.
And then we're going to go with C client, and once we're in the client, let's go with our command.
And I'm pretty sure that's the last package that we have to install in the client.
There might be some things that we need to install and serve, but as far as the client, I think this
is the last package.
So let's install moment.
Yes.
Then again, we'll navigate back to the server, will spin everything up and will test it out.
So it's clear everything in my terminal.
And let's navigate back to the server and let's go with amp start and first syntax first.
I'll pull out the creator that from the props, because again, I showcased how the object is going
to look like I'm I don't want to waste your time by doing that one more time.
And then as far as the library, we do need to import, of course, in our job and we're looking for
a moment and we want to pass in the creative up.
And as far as the response, we're going to go with date and date and then format.
So that's the method we have now.
I believe in the docs to showcase that you can also change it.
But in my case, I'm not going to do that.
I'm just going to go with the moment and create it.
That's the response that I'm getting back.
And again, I'm going to use this one and the date part format.
That's why I'm using left over here.
And as far as my formatting option, I'm going to go with month, one day comma and then here again,
please refer to docs.
If you want to have a different setup, so let me navigate to the job first.
What do we want to do?
Is import the moment from moment?
Yes and yes.
I keep saying moment just because that's how they call it.
But I guess all the imports and everything is just the moment.
And you know, before I forget, let me also add it to the read me now, Ron, read me in the job.
Just let's set up the import here.
And as far as the set up, like I said, we're going to look for creative as well created at Vine,
and we want to invoke our moment.
This is going to be equal to a date.
Then we go with moment we pass in, created at.
And then once we have this one in place was just a date is equal to date and then want to run the format
one.
When I said Mark, I said, I'm going to go with month one day.
And then come online here and now just showcase how everything is going to look like, what I'm going
to do is just wrap everything in there.
Thing is just going to be faster.
Copy and paste.
And then instead of company, let's display the date one.
I can double check.
I have everything correctly set up in the read me know.
So let me close this one.
And then in here it looks about right.
And now, once I navigate to my browser, what I should see in all the jobs is not only the company,
but I also have nicely formatted the date.
And once we have this one in place now, I can tackle the entire job component.