Coder Social home page Coder Social logo

knockout-date-bindings's Introduction

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

knockout-date-bindings's People

Contributors

danatcofo avatar safrazik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.