Important Update: Community URLs redirect issues are partially resolved. Learn More. .

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to set a date field to current time using a custom object?

AlexanderHatfie
Contributor II

Right now I have a custom object that changes a values list and saves the record. A rule then looks at that values list changing and sets a date equal to the current time.

 

Is there a way to simplify this and set a date based off of a custom object directly?

1 ACCEPTED SOLUTION

Accepted Solutions

FaisalKhan
Contributor III

var DateFieldID = 26427;

var currentDate = new Date();

 

$CM.setFieldValue(DateFieldID , currentDate, '');

View solution in original post

1 REPLY 1

FaisalKhan
Contributor III

var DateFieldID = 26427;

var currentDate = new Date();

 

$CM.setFieldValue(DateFieldID , currentDate, '');