How to add current date in JavaScript condition Expression | Community
Skip to main content
Level 3
October 23, 2020
Question

How to add current date in JavaScript condition Expression

  • October 23, 2020
  • 2 replies
  • 2337 views

Hi all,

I need to select data based on Last modified is today(current date) using Java script activity. So I used below script but Unable achieve the solution. Could you please help me here?

 

 

Thanks in advance

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Manoj_Kumar
Community Advisor
Community Advisor
October 23, 2020

Hello @ramprakasht3196 

 

Use GetDate() instead of new Date();

 

Thanks,

Manoj

Manoj  | https://themartech.pro
Level 3
October 27, 2020

I tried using both GetDate() and getCurrentDate(). It is not working inside QueryDef tag. Could you please help me here?

@amritakedia_epsilon & @_manoj_kumar_ 

Sukrity_Wadhwa
Community Manager
Community Manager
November 4, 2020

Hi @ramprakasht3196,

Were you able to resolve this query with any of the given solutions? Do let us know.

Thanks!

Sukrity Wadhwa