Comments (5)
Problem solve !
You need to load the libraries in the good order : moment.js before pickaday.js
Thank you guys for your help.
from pikaday.
When you declare:
$('#yourDate').pikaday({
format: 'YYYY-MM-DD'
});
#yourDate
input should have this format...
from pikaday.
I swear it doesn't..
$('#date_posted').pikaday({
firstDay: 1,
format: 'YYYY-MM-DD'
});
This is what i have, and the format is still the same.
I can't return it either with the function onSelect
from pikaday.
I'm using Backbone ans Backbone.ModelBinder to map DOM elements with my model. format option works as expected (after applying my patch #22 for trace changes).
from pikaday.
Are you (successfully) loading moment.js? That's a required dependency for formatting, but if its not present, the features gracefully degrade rather than throwing errors.
Scott
On Jan 30, 2013, at 5:28 AM, KubX [email protected] wrote:
I swear it doesn't..
$('#date_posted').pikaday({
firstDay: 1,
format: 'YYYY-MM-DD'
});
This is what i have, and the format is still the same.—
Reply to this email directly or view it on GitHub.
from pikaday.
Related Issues (20)
- Confused about cursor behavior on month area
- How to close on scroll? (Edited)
- Deselect Day if click on selected day?
- Project Status HOT 2
- Backspace clears out the whole input HOT 4
- Missing styles in scss file for .pika-row.pick-whole-week:hover
- Default value of input doesn't show HOT 1
- Change background color of days HOT 1
- arrow keys replace in RTL
- setDate() fire onSelect event when preventOnSelect is true HOT 2
- License clarification
- PLUGIN DOESN'T WORK - pickaday right-hand side of instanceof is not an object HOT 1
- On click or on focus the date picker goes hidden suddenly after that's popped up
- Suddenly the calendar opened on click is on November 1899 HOT 1
- Undesirable scrolling to input element after select year or month HOT 2
- Datepicker with a word before date pick
- Dates in the date-picker are getting disabled after calling the gotoDate function on it
- Problem with choice of month and year on Safari browser on iPhone 12
- Uncaught ReferenceError: Pikaday is not defined for Livewire version 3.0
- If showTime is true, ' HH:mm:ss' is appended to the format even if opts.format is not null. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pikaday.