0

Currently I am trying to figure out how I can format the month for french datetime to not include the ".".

i.e i want to change this:

    31 juill. 2018

to

    31 juill 2018

I'm trying to see if theres a better way than doing something like

    dateTime.replace(".", "");

Since I want to see if theres a way to manipulate the code so that the period doesnt show up in the first place?

you can see the code here demonstrating the issue: https://jsfiddle.net/u0cL5pem/2/

Dave Newton
  • 152,765
  • 23
  • 240
  • 286
Lilyah
  • 13
  • 4
  • Why are you trying to do this? When you shorten the name of a month in French, you have to denote it with the period. – marekful Feb 14 '19 at 16:56
  • @marekful it is just an ask we have from our client – Lilyah Feb 14 '19 at 18:13
  • What are your criteria for "better"? How is the string generated? You should post your code here, see [*How to create a minimal, complete and verifiable example*](https://stackoverflow.com/help/mcve). Probably a duplicate of [*How to format a JavaScript date*](https://stackoverflow.com/questions/3552461/how-to-format-a-javascript-date). – RobG Feb 14 '19 at 23:03
  • hi robg, agreed with the duplicate actually--i wanted to see if there were other, more elegant methods to format the date – Lilyah Feb 15 '19 at 16:02

0 Answers0