- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-17-2024 02:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-17-2024 03:10 AM
Hi @shirisha yadav
Create On Before BR
var gdt = new GlideDateTime();
var todayStr = gdt.getLocalDate().toString();
if (current.date_of_entry.toString() !== todayStr)
{
current.date_of_entry = todayStr;
gs.addErrorMessage('The date of entry must be the current date.');
current.setAbortAction(true);
}
Please mark this response as Correct and Helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-17-2024 03:10 AM
Hi @shirisha yadav
Create On Before BR
var gdt = new GlideDateTime();
var todayStr = gdt.getLocalDate().toString();
if (current.date_of_entry.toString() !== todayStr)
{
current.date_of_entry = todayStr;
gs.addErrorMessage('The date of entry must be the current date.');
current.setAbortAction(true);
}
Please mark this response as Correct and Helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
need to change in email script