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

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

SP Online rest API datetime-column value inconsistency And how to compare the dates ...
samolpp2's user avatar
  • 3,530
1 vote
2 answers

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

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

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