imsi imsi imsi imsi - 5 months ago 43
Javascript Question

How to get the date with Frensh formatting

I'm trying to use

in my project, what I want is to alert the date in French, I tried this:

alert(moment('2012-10-14', 'YYYY-MM-DD', 'fr', true););

But it alerts it in English, help please.

Answer Source

You need to use something like this:

alert(moment('2012-10-14').format('dddd Do MMMM YYYY'));
<script src=""></script>

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download