Started: 12/2/2021 4:58 AM
Picture Placeholder: Jim Hidson.
Jim Hidson.
How to do calculation or rules on a Date field in the repeater?

​create a date object in order to work with it in JS as date, otherwise it will be treated as string.

​Once you have it as a date object, you can use the functions like this:

The first line is how to convert it to date object in JS.

​​

var d=new Date("10/27/2021")

d.getDate()

d.getFullYear()

d.getMonth()

 
Picture Placeholder: Jim Hidson.
  • Jim Hidson.
/_layouts/15/images/person.gif" alt="Picture Placeholder: Jim Hidson." />
Jim Hidson.

​create a date object in order to work with it in JS as date, otherwise it will be treated as string.

​Once you have it as a date object, you can use the functions like this:

The first line is how to convert it to date object in JS.

​​

var d=new Date("10/27/2021")

d.getDate()

d.getFullYear()

d.getMonth()

 
012/2/2021 4:58 AM12/2/2021 4:58 AMNoCodes & Scripts
0
12/2/2021 4:19 AM
There are no items to show in this view of the "Discussions List" discussion board.