Get month from $([vars/From_Date])) | Community
Skip to main content
siddheshj442972
Level 2
June 23, 2019
Solved

Get month from $([vars/From_Date]))

  • June 23, 2019
  • 2 replies
  • 2701 views

Hi team,

How to get month from $([vars/From_Date])) in reports while filtering query.

I tried Month($([vars/From_Date])) ,but getting error while using this function.

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

Hi ,

Value coming from vars/From_Date is of date type or Datetime?

If it's datetime, Please try below syntax

Month(ToDate(vars/From_Date))

Do let me know if this works.

Thanks,

Kapil

2 replies

siddheshj442972
Level 2
June 23, 2019

kapilKochar
kapilKocharAccepted solution
Level 6
June 23, 2019

Hi ,

Value coming from vars/From_Date is of date type or Datetime?

If it's datetime, Please try below syntax

Month(ToDate(vars/From_Date))

Do let me know if this works.

Thanks,

Kapil