month starts at 1
This commit is contained in:
parent
3abfa0a23c
commit
c29889070d
3 changed files with 3 additions and 1 deletions
|
@ -148,6 +148,7 @@ public class FindServiceProvider extends AppCompatActivity {
|
|||
public void onDateSet(DatePicker view, int year, int month, int day) {
|
||||
Calendar newDate = Calendar.getInstance();
|
||||
newDate.set(year, month, day);
|
||||
month++;
|
||||
String daystring;
|
||||
String monthstring;
|
||||
if((""+day).length()==1){
|
||||
|
|
|
@ -64,6 +64,7 @@ public class MakeBooking extends AppCompatActivity {
|
|||
public void onDateSet(DatePicker view, int year, int month, int day) {
|
||||
Calendar newDate = Calendar.getInstance();
|
||||
newDate.set(year, month, day);
|
||||
month++;
|
||||
String daystring;
|
||||
String monthstring;
|
||||
if((""+day).length()==1){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue