Nishant8
Tera Sage

Hello @niveditakumari , You can compare with help of GlideDate API too, but why don't you write an encoded query and do this easily like below:

 

var grUser = new GlideRecord('sys_user');
grUser.addEncodedQuery('active=true^u_sf_date_of_birthONToday@javascript:gs.beginningOfToday()@javascript:gs.endOfToday()');
grUser.query();
while(grUser.next()){
        gs.log("Hi, it's the user's birthday!:" + grUser.name);
        gs.eventQueue("birthday.notification",grUser.name.toString(),grUser.email.toString());
}
 
Regards,
Nishant