Date format/culture

  1. #1

    Date format/culture

    Hello, someone know hot to change the format to "dd/MM/yyyy" or some spanish culture like "es-AR".
    Because if I set on page.load:
    DateTimePicker.format="dd/MM/yyyy"
    DateTimePicker.SelectedDate=DateTime.Now 'DateTime.Now is "18/03/2008"
    I have something like "06/03/09" (03 june) why?????

    The same happend if i select a date later than day 12.

    Please help!!!
    Sorry for my English!!

    Thanks
    Ariel

  2. #2

    RE: Date format/culture

    Hi MrMp3,

    Does the following forum post help solve the problem?

    http://forums.ext.net/showthread.php...ghlight=format
    Geoffrey McGill
    Founder & CEO
  3. #3

    RE: Date format/culture

    Thanks for your reply!

    I can't understand the solution that alexb did:

    "dd.MM.yyyy".Replace("dd", "d").Replace("MM", "m").Replace("yyyy", "Y")
    :(

    Thanks again

Similar Threads

  1. Replies: 3
    Last Post: May 09, 2012, 4:28 PM
  2. Replies: 1
    Last Post: Apr 13, 2012, 1:52 PM
  3. Replies: 4
    Last Post: Mar 26, 2012, 12:16 AM
  4. Replies: 4
    Last Post: Jun 30, 2011, 3:30 PM
  5. [CLOSED] How to Set Date Format in a Coolite Date Field
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 02, 2010, 8:47 AM

Posting Permissions