Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Display data according to cultural settings in SQL Report

Display data according to cultural settings in SQL Report

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdatabasehelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Shivan Nandan
    wrote on last edited by
    #1

    Dear friends, In my asp.net 2.0 website, I added a Report. I am using cultural settings in my site. Is there any way to display the data in the report based on cultural settings. ie, if the cultureInfo="en-US", the date data in report should display in MM/dd/yyyy format. if the cultureInfo="en-GB", the date data in report should display in dd/MM/yyyy format. Please give me a suggestion for this problem

    Shivanandan C V

    N 1 Reply Last reply
    0
    • S Shivan Nandan

      Dear friends, In my asp.net 2.0 website, I added a Report. I am using cultural settings in my site. Is there any way to display the data in the report based on cultural settings. ie, if the cultureInfo="en-US", the date data in report should display in MM/dd/yyyy format. if the cultureInfo="en-GB", the date data in report should display in dd/MM/yyyy format. Please give me a suggestion for this problem

      Shivanandan C V

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      Shivan Nandan wrote:

      I added a Report.

      What report is it? A crystal report or some other? DateTime.Now.ToString() has got overloads, where you can specify the pattern you want to display the date. :)

      Navaneeth How to use google | Ask smart questions

      S 1 Reply Last reply
      0
      • N N a v a n e e t h

        Shivan Nandan wrote:

        I added a Report.

        What report is it? A crystal report or some other? DateTime.Now.ToString() has got overloads, where you can specify the pattern you want to display the date. :)

        Navaneeth How to use google | Ask smart questions

        S Offline
        S Offline
        Shivan Nandan
        wrote on last edited by
        #3

        I have used SQL Server Reporting Service. In that I kept a table and on that, added fields from dataset which includes a datetime field also. This report is bound to a ReportViewer Control in the aspx page. In this aspx page, I have set the culture. While displaying Date on this page, it displays based on the culture I have set, but the report displays date in local system settings.

        Shivanandan C V

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups