Question: I want to convert dd/mm/yyyy to mm/dd/yyyy in javascript.

Answer: 
You can use the following function specified, 1 date and 2 the date separator (optional)
The date will be returned in the desired format.

```
const setFormatDDMMYYYYtoMMDDYYYY = (date, separator = '/') => {
  const [day, month, year] = date.split('/');
  return month + separator + day + separator + year;
};

```
```
date = "01/Feb/2010"
monthes = {"Jan": "01", "Feb": "02", "Mar": "03" ... }
date_ar = date.split(/\//)
day = date_ar[0]
year = date_ar[2]
month = monthes[date_ar[1]]
new_date = [month, day, year].join("/")

```