Null value to date type field

Community Alums
Not applicable

Hello,

How should i assign a null value to date type field. When am giving 

var activeDate = null; or var activeDate= " ";

none of them are working it is saying as invalid and throwing error. can anyone suggest on this ?

Shannu_0-1670330086653.png

 

Thanks.

3 REPLIES 3

jaheerhattiwale
Mega Sage
Mega Sage

@Community Alums For me its working.

 

jaheerhattiwale_0-1670328222780.png

 

jaheerhattiwale_1-1670328241249.png

 

Please send the screen shots where you are trying that

Please mark the answer as correct or helpful based on impact
ServiceNow Community Rising Star, Class of 2023

Community Alums
Not applicable

I have just added, can you check

@Community Alums Where you setting the date field to null? Can you please explain what is your full requirement?

Please mark the answer as correct or helpful based on impact
ServiceNow Community Rising Star, Class of 2023