Date Format with strange behavior on deploy server

2 posts, 0 answers
  1. Joao Paulo Grassi
    Joao Paulo Grassi avatar
    98 posts
    Member since:
    Feb 2011

    Posted 06 Sep 2011 Link to this post


    I have a telerik Report with various Date fields, 2 of them are the report parameters and the other is from my database.

    I set the date format for my 2 textbox that shows the Selected date on the DateTimePicker to 01/01/2011
    and to my date column i set a format like this: 01/01/2011 08:00 (with time)

    My problem is, on development machine all works perfect, but when i deploy my application, the fields show the dates in a differente way,
    all of them use this format 1/1/2011 (without the "0").

    I tried everything untill now and had no success, my question is, there's something that i need to change to get this format on my date times in the server or something?

    I attach a image taht shows the problem.

    Thank you!
  2. Steve
    Steve avatar
    10941 posts

    Posted 08 Sep 2011 Link to this post

    Hi Joao Paulo Grassi,

    The only thing that could cause the difference is different culture/locale on the production server. Compare both (on the production and dev machine) and apply the one that fits your needs.

    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  3. DevCraft R3 2016 release webinar banner
Back to Top