Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delegate date formatting #232

Merged
merged 1 commit into from
Jul 26, 2017
Merged

Delegate date formatting #232

merged 1 commit into from
Jul 26, 2017

Conversation

snovakovic
Copy link
Contributor

@snovakovic snovakovic commented Jul 26, 2017

Delegate date formatting. This will allow us to use moment, date-fns, globalize or any other library to format dates.

This address issue #211

Usage:

<datepicker :format="formatter"></datepicker>

methods: {
  formatter(date) {
    return moment(date).format('MMMM Do YYYY, h:mm:ss a');
  }
}

@charliekassel charliekassel merged commit 0fbf795 into charliekassel:master Jul 26, 2017
@charliekassel
Copy link
Owner

Available from v0.9.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants