mdehoog / Semantic-UI-Calendar

Calendar module for Semantic UI
MIT License
805 stars 127 forks source link

How do you remove the Comma in the date field ? #56

Closed bearnie closed 7 years ago

bearnie commented 7 years ago

Hi all, I'm setting up a calendar with french formatted dates, ie DD/MM/YY, but cannot find how to get rid of the comma and end up with 24 mars, 2017 showing in the field instead of 24 mars 2017. I already changed monthFirst to false so that day and month show up in the french order. I can't see a setting that seems to handle the ##comma. I use the momentjs-rails gem, if the info could be of use. Thanks forward ! Ps : sorry, couldn't find the way to label this issue as a question. Pls do let me know how to do that for future use... :o)

mdehoog commented 7 years ago

Sure, simply override the format.date function. See the "Custom format" example in the JSBin on the homepage.