Tips:Using JavaScript in Memento: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 26: Line 26:
JavaScript Date & time functions expect & return time '''in milliseconds'''. This differs from Calculation fields, which use seconds.
JavaScript Date & time functions expect & return time '''in milliseconds'''. This differs from Calculation fields, which use seconds.


Also, Memento includes an optional JavaScript library '''moment.js''' that provides flexible formatting of dates and times. For a summary of this library, see [http://momentjs.com http://momentjs.com]. For more details, see [http://momentjs.com/docs http://momentjs.com/docs].<br/> Note that the particular library included in Mementoat this time is called moment.min.js.
Also, Memento includes an optional JavaScript library '''moment.js''' that provides flexible formatting of dates and times. For a summary of this library, see [http://momentjs.com http://momentjs.com]. For more details, see [http://momentjs.com/docs http://momentjs.com/docs].<br/> Note that the particular library included in Memento at this time is called moment.min.js.


See '''[[Date field]]''', '''[[DateTime field]]''', or '''[[Time field]]''' for details of formatting date & time values.
See '''[[Date field]]''', '''[[DateTime field]]''', or '''[[Time field]]''' for details of formatting date & time values.