eureka2 / ab-datepicker

An accessible and bootstrap compatible datepicker
MIT License
63 stars 55 forks source link

how to set date format like "Month D, Yr" #53

Closed ajaysharma92 closed 4 years ago

ajaysharma92 commented 4 years ago

Hi,

Please let me know how can i set the date format like this "Month D, Yr" for ex: December 16, 2019.

I have tried with this : outputFormat: "MM"+" "+"dd"+", "+"yyyy"

i am getting like this "12 12, 2019" actually I want the output like this "December 16, 2019" please suggest me a solution

ajaysharma92 commented 4 years ago

Got the solutions

inputFormat: ["MMMM.DD.YYYY"], outputFormat: "MMMM"+" "+"dd"+", "+"yyyy"