-
Notifications
You must be signed in to change notification settings - Fork 531
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
Problem with inputType="date" #138
Comments
Thanks, missing some formatter from field code |
Hot fix: https://jsfiddle.net/icebob/ebmgv286/4/ {
type: "input",
inputType: "date",
label: "Example date",
model: "exampleDate",
set: function(model, val) {
model.exampleDate = new Date(val).valueOf();
}
} |
I checked fiddle - now I can save and read dates without errors. Much better :) Is it possible to save dates in other format? E.g. "2017-03-02 12:04:00"? |
If I fixed this bug in vfg then yes. |
I fixed it. Fiddle with the fixed bundle: https://jsfiddle.net/ebmgv286/5/ Other example with formatted date value: https://jsfiddle.net/ebmgv286/6/ |
Does this require any docs changes? |
@dflock Maybe. Because now |
This work for me. Thanks! |
I have problem with field type="input", inputType="date" and inputType="datetime-local"
This fields save date in format: Fri Nov 30 1973 00:00:00 GMT+0100 (CET)
But cannot read such format. I expects number: 123412323232
Fiddle:
https://jsfiddle.net/ebmgv286/3/
The text was updated successfully, but these errors were encountered: