Hello,
i try to use in my custom webpart a function SP.DateTimeUtil.SPRelativeDateTime.getRelativeDateTimeString from fileSP.DateTimeUtil (SharePoint 2013):
SP.DateTimeUtil.SPRelativeDateTime.getRelativeDateTimeString(myDate, false, SP.DateTimeUtil.SPCalendarType.none, false)
It works and returns back a result like "2 days ago". But there is a problem. It returns back some texts on English and some on Russian. I'm added webpart on website, which has been create based on Russian template.
I tried also to add this webpart on list view page (AllItems.aspx) and found, that now all text returns on Russian. Not clear why, but it is already better, but still there are a grammatical errors, which are missing in the list view for the same entries.
Unfortunately I didn't find a documentation or normal examples. Everything that I have - it is a file SP.DateTimeUtil.js ((.
Please help me to understand how this function works (examples or links)! Thanks a lot!
from MSDN forum...