Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Max time as current date current time #102

Open
parthnayak7448 opened this issue Mar 4, 2017 · 1 comment
Open

Max time as current date current time #102

parthnayak7448 opened this issue Mar 4, 2017 · 1 comment

Comments

@parthnayak7448
Copy link

Hello, Can you give me example how i can set current time as max time so user cannot able to select future time. I have tried using

only-valid="{before: 'today', inclusive: true}

but its only working in date not in time.

Your help would be very help for me .

Thanks in advance.

@katemihalikova
Copy link
Owner

The whole validation works just for dates. If you want to validate the time, you need to write your own validator on the ngModel.

Let's fix this in the next version which should add more thorough user-defined validations.

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

No branches or pull requests

2 participants