Forum Discussion

julesdude's avatar
julesdude
Icon for Post Partisan rankPost Partisan
3 years ago
Solved

DATEDIFF incorrect - not sure why

Hi all, I have the following matrix table in my report: The Unexpired Lease in Days column contains the following:     Unexpired Lease in Days = VAR _asofdate = [As Of Date] VAR _leaseend...
  • tamerj1's avatar
    tamerj1
    3 years ago

    julesdude 

    Not sure the reason for using the FORMAT function. However, please try

    RETURN
    _targetdate


    Or


    RETURN
    DATEVALUE(FORMAT(_targetdate, "dd/mm/yyyy"))