Skip to content

catturavideo/knockout-date-bindings

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Project Status: 🚨 Unmaintained 🚨

This project is no longer maintained. We will not be accepting pull requests, addressing issues, nor making future releases.

knockout-date-bindings

knockout js bindings for javascript date with moment js

Basic Usage

View Model

viewModel.birthDay = ko.observable(new Date());

View

<!-- could be bound to HTML5 date types (date, datetime-local, month, week, time) -->
<input type="date" data-bind="date: birthDay">

<!-- could be bound to text elements too. You should pass a parameter for date format -->
<span data-bind="date: birthDay, dateFormat: 'MMMM Do YYYY'"></span>

Refer to momentjs to format the date, the way you want

About

knockout js bindings for javascript date with moment js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%