3
How do I convert the date to this type 02 Ago 2017
for 02/08/2017
?
I’m using the vuejs-datepicker
and when selecting it comes in this format, and the documentation says to do so...
customFormatter(date) {
return moment(date).format('dd MMM yyyy');
}
But using Moment, wanted no Moment, as would do?
The time is the best lib to date you have on the market and you don’t want to use
– Otto
@Otto no, I don’t want to use, I want to use Pure JS
– Rafael Augusto
02 Ago 2017
for02/07/2017
? The right thing wouldn’t be02/08/2017
? And its format will always be this, with the abbreviation of the month in pt?– BrTkCa
@Lucascosta 7 was an error at the time I was typing, and yes, it was set to PT, but I can set it to EN, and will always be abbreviated yes.
– Rafael Augusto
I think the @Dnick response fits, maybe with some adjustment to change the month position with the day.. but you could comment on the answers that already exist.
– BrTkCa