[CLOSED] DatePickerField - Date format

  1. #1

    [CLOSED] DatePickerField - Date format

    It seems that setting DateFormat doesn't have any effect. It alwys tend to format like this '06/24/2016'.

                        x.DatePickerField()
                            .Label("Date")
                            .DestroyPickerOnHide(true)
                            .Name("date")
                            .DateFormat("d-m-Y")
                            .Picker(
                                x.DatePicker()
                                    .YearFrom(1990)
                                    .DateValue(new DateTime(2016, 6, 24))
                            )
                        )
    Last edited by fabricio.murta; Mar 10, 2017 at 6:24 PM.
  2. #2
    Hello @sveins12!

    I'm getting this alright on chrome, any specific browser you are trying with?..

    I also tested changing the separators to see what happens, and the date field follows.

    I changed it to this, for example:

    .DateFormat("d.m.Y")
    And I get here "24.06.2016" (if I just choose initially selected date).
    Fabrício Murta
    Developer & Support Expert
  3. #3
    Hello @sveins12!

    Been some time since we posted a follow-up here and still no feedback from you. Do you still need help with this issue? We may mark this as closed if you don't reply in 7+ days, but that won't prevent you from posting your feedback when you feel like.
    Fabrício Murta
    Developer & Support Expert
  4. #4
    How can I get this format: "2017-02-29"
  5. #5
    Did you try DateFormat("Y-m-d")?
    Geoffrey McGill
    Founder & CEO
  6. #6
    Thank you. I think the case is solved then.

Similar Threads

  1. Replies: 8
    Last Post: May 20, 2013, 4:01 AM
  2. Replies: 3
    Last Post: May 09, 2012, 4:28 PM
  3. Replies: 1
    Last Post: Apr 13, 2012, 1:52 PM
  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 Premium Help
    Replies: 2
    Last Post: Dec 02, 2010, 8:47 AM

Posting Permissions