0

I am using ion-datetime for my project

https://ionicframework.com/docs/api/components/datetime/DateTime/

It is working nice, only problem i have to show inital value, that does not show??

<ion-datetime displayFormat="YYYY" name="LastServiceDate" value="2017"></ion-datetime>

I put value inside attibute it does not show inital?

1 Answer 1

1

There is no value property in ion-datetime in documentation, try ngModel.

<ion-datetime displayFormat="YYYY" name="LastServiceDate" [(ngModel)]="dateValueVar">
</ion-datetime>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.