date format

  • Hi,

    I have a report that i want to see the last days results from and have the option for people to change the date to see further back if they wish

    The dates in the table are iso standard

    Ive set up a parameter and tried using:

    =DateAdd(DateInterval.Day,-1,Now)

    but it comes out in uk format so the results are messed up.

    Any ideas on a fix

    Thanks !

    S

  • Spoke to soon.

    Ive done the below exp and it seems to work!

    =Format(DateAdd(DateInterval.Day,-1,Now),"yyyy/MM/dd")

  • stebennettsjb (11/9/2011)


    Spoke to soon.

    Ive done the below exp and it seems to work!

    =Format(DateAdd(DateInterval.Day,-1,Now),"yyyy/MM/dd")

    That is a great trick, I'll have to remember that 🙂

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply