Need help for generating script for a condition where CR will log before 1 PM on the previous day
var date1=new Date();
var date2=$CS.getValue('SCHEDULEDSTARTTIME');
date2 = new Date(date2);
var diff = Math.abs(date1 - date2);
if (Math.abs(diff/(1000*60*60) < 12)) {
$CS.stopFormSubmission();
alert("Ensure the time window is at least 12 hours");