I have implemented two textFields
From and To in ViewController
.When the user selects the textField
he is able to select the date from the calendar. The selected Date is stored in the TextField
as
YYYY-MM-dd
format.
And I have implemented a calculate button in ViewController
.When the Two TextField
are filled i need to do some work.
When the two textField
are filled and the From TextField
is greater , I want to display an alert when the From TextField
date is Greater than To TextField
.
How can i Compare it...?