I am trying to create an app that reminds us to do chores on the particular day. I wanna know how to link the date,day and time of the system to the app. For eg: If today is Tuesday, i want the app to automatically change the day from Tuesday to Wednesday tomorrow. Thanks for your help.
Asked
Active
Viewed 29 times
1 Answers
0
You have a couple of selections you could use.
import java.util.Date;
Date date=new Date();
import java.util.GregorianCalendar;
new GregorianCalendar().getTime();
I personally like the jodatime library. Example use found here
-
Thanks for your help. Is there a way so that i can link google calendar to my app. For eg if today is Dec 25 then my app should automatically show it as holiday. – Gastly Yoi Aug 03 '16 at 16:45
-
I'm unsure, never looked into it. Read the documentation for the three libraries and see. – Aaron Aug 04 '16 at 08:25