Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

Difference between gs.daysAgoStart(int) and gs.daysAgo(int) function

amaradiswamy
Mega Sage

Hi,

Can anyone please explain me the difference between "daysAgoStart(int)" and "daysAgo(int) " functions in GlideSystem Date and Time Functions. It will be very clear if anyone can explain with examples.

Thanks & Regards,

Swamy

1 ACCEPTED SOLUTION

bernyalvarado
Mega Sage

Hi Amaradi,



daysAgo will go the X numbers of days ago at the current time Vs daysAgoStart will be at the start for that day.



Thanks,


Berny


View solution in original post

1 REPLY 1

bernyalvarado
Mega Sage

Hi Amaradi,



daysAgo will go the X numbers of days ago at the current time Vs daysAgoStart will be at the start for that day.



Thanks,


Berny