I have two functions wherein it lets the user set a particular date. It's Start Date and End Date. Now I need to compare these two variables because the Start Date should not be greater than the End Date. Here's my code in android. Any help will do. Thanks.
private DatePickerDialog.OnDateSetListener mDateSetListener = new DatePickerDialog.OnDateSetListener()
{
public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth)
{
yr = year;
month = monthOfYear;
day = dayOfMonth;
Date.setText((month + 1) + "/" + day + "/" + yr);
}
};
private DatePickerDialog.OnDateSetListener mDateSetListener1 = new DatePickerDialog.OnDateSetListener()
{
public void onDateSet(DatePicker view1, int year1, int monthOfYear1, int dayOfMonth1)
{
yr = year1;
month = monthOfYear1;
day = dayOfMonth1;
DateEnd.setText((month + 1) + "/" + day + "/" + yr);
}
};