1

Is there a way to change the format of aldeed/meteor-autoform-bs-datepicker to dd/mm/yyyy. I've tried the code below but it doesn't work.

date: {
        type: Date,
        optional: true,
        autoform: {
            type: "bootstrap-datepicker",
            datePickerOptions:
                {
                    format: "dd/mm/yyyy"
                }
          }
    }
bp123
  • 3,217
  • 8
  • 35
  • 74
  • The option to change the date format for the jQuery UI datepicker widget is `dateFormat`, not `format`. Theoretically that should work... http://api.jqueryui.com/datepicker/#option-dateFormat – Brian Shamblen Feb 05 '16 at 07:02
  • Thanks Brian, unfortunately that doesn't work either. What's strange is if I don't use the aldeed:meteor-autoform-bs-datepicker I don't have this problem. – bp123 Feb 05 '16 at 17:39
  • Also having this problem. Any update? – Kris Haamer May 10 '16 at 16:10
  • Never figured this one out. Still stuck on it. If you have any luck please update here. – bp123 May 10 '16 at 21:16

1 Answers1

0

the format

d/mm/yyyy 

would return

22/12/2015

Alternatively, the format

D/mm/yyyy 

would return

Saturday/12/2015

Check this: https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx

BarkleyBG
  • 664
  • 5
  • 16
Pak Lei
  • 141
  • 7
  • It's a better idea to quote the article you linked to rather than just giving a link. What if the article disappears and the link starts redirecting to a 404? – The SE I loved is dead Jul 24 '16 at 18:47