Skip to content
This repository has been archived by the owner on Sep 3, 2019. It is now read-only.

Is "formatSubmit" option implemented? #40

Open
antoniogiroz opened this issue May 18, 2016 · 2 comments
Open

Is "formatSubmit" option implemented? #40

antoniogiroz opened this issue May 18, 2016 · 2 comments

Comments

@antoniogiroz
Copy link

Hi, I'm trying set "formatSubmit" in directive options, but I can't get the correct format:

These are my settings (in controller):

this.datePickerOptions = {
    format: "dd/mm/yyyy",
    formatSubmit: "yyyy-mm-dd",
    hiddenName: true //I have tried with false value too

}

"format" setting works fine, but "formatSubmit" doesn't work and ng-model variable always has "dd/mm/yyyy" format.

This is the input code:

<input type="text" name="myDate" pick-a-date="vm.curMyDate" 
pick-a-date-options="vm.datePickerOptions" ng-model="vm.myDate">

What am I doing wrong?

Thanks!

@xavianaxw
Copy link

@algil did you manage to figure this out?

@antoniogiroz
Copy link
Author

Nothing yet. After getting the value, I format with momentjs.

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

No branches or pull requests

2 participants