Forum Discussion

tomasmartinek's avatar
tomasmartinek
Frequent Visitor
5 years ago
Solved

Adobe Connector and date range parameter

Hello,   I am trying to change date to relative in adobe analytics connector from "anything" (last 60 days or from 1/1/2021) to today.   {Cube.ApplyParameter, "DateRange", {#date(2021, 7, 13), #d...
  • ImkeF's avatar
    5 years ago

    Hi tomasmartinek ,

    use Date.From ( DateTime.LocalNow() ) instead of #date.

     

  • Anonymous's avatar
    Anonymous
    5 years ago

    tomasmartinek "
    This is because you your first date return Date only, and DateTime.LocalNow() returns Date and Time. Change it to the expression below.

     

    DateTime.Date(DateTime.LocalNow())

     

     

    Paul Zheng _ Community Support Team
    If this post helps, please Accept it as the solution to help the other members find it more quickly.