wants to set the variable value with end of the month date like (31/01/2025)

akankshak15
Tera Guru

I have a target timeline date once item is submitted i have to set that variable value with submitted month last date suppose form is submitted on 14 jan or any date of the month . target timeline variable value should be 31/01/2025

9 REPLIES 9

Ankur Bawiskar
Tera Patron
Tera Patron

@akankshak15

so what script did you start with

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi @Ankur Bawiskar 

on submit of the form thinking to populate the variable 

@akankshak15 

you should use server side script for this as you will require to use GlideDateTime

You can use after insert BR or workflow run script or flow designer script for this

Try to come up with script in background and then apply there

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi @Ankur Bawiskar 

okay i'll try to write the BR