month starts at 1

This commit is contained in:
IvanaE 2018-11-20 12:28:51 -05:00
parent 9b07e5e20c
commit ab64c2bb0d
3 changed files with 3 additions and 1 deletions

View file

@ -25,7 +25,7 @@
</value> </value>
</option> </option>
</component> </component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK"> <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" /> <output url="file://$PROJECT_DIR$/build/classes" />
</component> </component>
<component name="ProjectType"> <component name="ProjectType">

View file

@ -148,6 +148,7 @@ public class FindServiceProvider extends AppCompatActivity {
public void onDateSet(DatePicker view, int year, int month, int day) { public void onDateSet(DatePicker view, int year, int month, int day) {
Calendar newDate = Calendar.getInstance(); Calendar newDate = Calendar.getInstance();
newDate.set(year, month, day); newDate.set(year, month, day);
month++;
String daystring; String daystring;
String monthstring; String monthstring;
if((""+day).length()==1){ if((""+day).length()==1){

View file

@ -64,6 +64,7 @@ public class MakeBooking extends AppCompatActivity {
public void onDateSet(DatePicker view, int year, int month, int day) { public void onDateSet(DatePicker view, int year, int month, int day) {
Calendar newDate = Calendar.getInstance(); Calendar newDate = Calendar.getInstance();
newDate.set(year, month, day); newDate.set(year, month, day);
month++;
String daystring; String daystring;
String monthstring; String monthstring;
if((""+day).length()==1){ if((""+day).length()==1){