R
R
Roman Chasovitin2018-08-22 11:57:28
JavaScript
Roman Chasovitin, 2018-08-22 11:57:28

How to translate a date made using the date pipe into Russian?

Hi all! I receive data from the API, a date like 22:02:15 08/10/2018 GMT +6 comes. I will transform it in the template using the default pipe date: {{ time | date: 'dMMMM yyyy' }}. But it turns out the output is 10 August 2018. I need to translate the month into Russian. Is there such a possibility? Connecting third-party libraries is undesirable.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
riot26, 2018-08-22
@riot26

toLocaleDateString()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question