Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

How works SP.DateTimeUtil.SPRelativeDateTime.getRelativeDateTimeString (documentation, links, examples )?

$
0
0

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...




Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>