Date format in reports

  • Hi,
    We have just done an upgrade of SSRS from 2012 to 2016 and now something odd is happening, some not all of our reporrr are now showing dates in a US format when previously they were in a UK format (as we wanted). It's obviously a default but I can't seem to find where, the machine is set to UK time and location.

    Does anyone know where this value is or what I should check?

    Thanks,

    Nic

  • I'd check the tea from the colonies

    -------------------------------------------------------------------------------------------------------------------------------------
    Please follow Best Practices For Posting On Forums to receive quicker and higher quality responses

  • Oh, I got my hopes up and thought we had an answer then.

  • Regional settings of the reporting server?
    You can alter the default language of a login with ALTER LOGIN

  • as Jo Pattyn suggested I would check the default language for the Login and if DB and SQL Server Collation match, too.

  • Thanks for the replies
    Which login do you mean to alter.

    The one SQL server and ssrs run as on the report server?
    Or the login that the reports data source uses? Or another?
    If you mean the login the data source uses, well that login is on another server (where the data) is and has not been changed at all.

    Thanks,

    Nic

  • NicHopper - Friday, September 14, 2018 7:28 AM

    Thanks for the replies
    Which login do you mean to alter.

    The one SQL server and ssrs run as on the report server?
    Or the login that the reports data source uses? Or another?
    If you mean the login the data source uses, well that login is on another server (where the data) is and has not been changed at all.

    Thanks,

    Nic

    If the fields in the report are defined with a date format - and that date format is set to use regional settings - then the client viewing the report will determine the format of the date field.  To avoid this issue - I define the format of the date fields to display in YYYY-MM-DD format instead.

    You should modify the fields in the report to use the appropriate format for display - if you want to insure the UK format of DD/MM/YYYY for all users then you would use a custom format and define that format as dd/MM/yyyy hh:mm:ss.

    You can also define the regional settings of the report itself - and then choose one of the defined formats that are set to reflect the regional settings of the report.  Any of the formats that begin with an '*' will reflect the regional settings of that report instead of the regional settings of the client.

    Again - I would avoid the issue by using a standard format that is not subject to regional settings.

    Jeffrey Williams
    “We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”

    ― Charles R. Swindoll

    How to post questions to get better answers faster
    Managing Transaction Logs

Viewing 7 posts - 1 through 6 (of 6 total)

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