Closed federicoco closed 7 years ago
I've managed to display it in a human comprensible way, but it is in english : if I want to change the locale to italian ?
I've included the moment-with-locales.js and in the init function of angular(equivalent of $(function)), I wrote
moment().locale('it');
if you see the attached images you will understand what I'm trying to achieve
no, what fix would you suggest me ?
You need to setup i18N for Angular. See this stackoverflow as an example
hello sorry to annoy you, I've added the libraries like stackoverflow example suggested . The date is printed in italian locale only when is changed 1) underlined date : In english 2) popup combo date : months in english 3) Change date in Italian locale, but it does not update the old date How i manage to have all the date in italian locale ? (displayed date, months in italian ?)
You might need to create a jsfiddle/plunker with your code if you want further specific help.
Hello sorry to hijack this post but I have a question about the displayed datetime value. When testing locally on my machine the displayed valued is shown in UTC. Is this working as should? How do you get the displayed value to show in the users timezone?
hmmm nvm, I don't think our api is correctly returning datetime in UTC format.
@thienedits should this issue be closed?
Yes my issue has been resolved not sure about original post owner though.
hello, I'm using angular Xeditable for my thesis.
<a href="#" id="dataInizio" editable editable-combodate="risultato[0].data_inizio" data-pk="1" data-title="Quando è succcesso?">{{risultato[0].data_inizio }}</a>
where data_inizio is a date returned from a query in datetime format (2016-05-05 15:00:00) . I would like to display the date in this format (in the
<a> tag
)1 Febbraio 2016 15:00
where Febbraio is the month in italian . After I change the date it shows the changed date in this format2015-03-01T04:00:00.000Z
so, my problems are :
1)Show in the a tag a localized italian date 2)when the date is changed, show it in a human comprensive way Can you please help me?