Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2020 10:46 PM
Hey David,
try below code,
In Script Include, Try adding below code to validate the date/time in logged in user timezone.
var tz = gs.getSession().getTimeZone();
var gdt = new GlideDateTime();
gdt.setTZ(tz);
var diff = gs.dateDiff(gdt, "catalog variable Value which you pass from client script through glide ajax", true);
if(diff < 0){
return false;
}
You can refer below threads as well
Please mark as Correct Answer and Helpful, if applicable.
Regards,
Indrajit.