Questions tagged [moment]

Questions related to "moment.js" library, which is used to parse, validate, manipulate, and display dates and times in JavaScript.

Filter by
Sorted by
Tagged with
0 votes
0 answers
35 views

JavaScript\moment.js function won't change date

I have date fields that I need to run calculations on. Its a 3 step process. Run date through function to compare against holiday list, if date matches a date listed in holiday list, push forward 1 ...
Ghoztrider's user avatar
0 votes
0 answers
184 views

SP Online rest API datetime-column value inconsistency And how to compare the dates

https://social.msdn.microsoft.com/Forums/Windowsserver/en-US/5498c43c-7124-4be5-9627-ea23bd246cba/sharepoint-rest-api-datetime-column-values-inconsistency?forum=sharepointdevelopment&prof=required ...
samolpp2's user avatar
  • 3,530
1 vote
2 answers
105 views

Function always return same value instead throw else clauseif condition is not valid

I have this query running from JSLink into list. It get current time from moment.js and compare date with sharepoint column ctx.CurrentItem.Cumplimiento; and return result into column ...
Ledwing's user avatar
  • 465
3 votes
2 answers
2k views

Formatting a Date from a SharePoint List using Javascript and Momentjs

I'm querying a SharePoint list using a JavaScript file and returning the results to a HTML page. All the results are coming back fine, but the results from the date column 'DeviceAvailableFrom' is ...
Dazza's user avatar
  • 767
1 vote
3 answers
2k views

How to refer js file in item display template

I am trying to refer the moment.js file in display template for search content webpart. I have a display template with item template and control template. In the item template i am trying to add ...
SandeshR's user avatar
  • 1,992