month starts at 1

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

View file

@ -25,7 +25,7 @@
</value>
</option>
</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" />
</component>
<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) {
Calendar newDate = Calendar.getInstance();
newDate.set(year, month, day);
month++;
String daystring;
String monthstring;
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) {
Calendar newDate = Calendar.getInstance();
newDate.set(year, month, day);
month++;
String daystring;
String monthstring;
if((""+day).length()==1){