Mike A
- Forum posts: 1
Nov 4, 2010, 7:26:22 PM via Website
Nov 4, 2010 7:26:22 PM via Website
I am developing a To Do List application and I am using th DatePicker widget to have the user set the date the the task should be completed by. I can get the day, month, and the year out of that. When I put that information into an android.text.format.Time object called t by doing t.set(seconds, minutes, hours, day, month, year) I was expecting t.weekDay to give the me day of the week [0-6] with 0 representing Sunday and 6 being Saturday. When I use that it always returns 0 because it doesn't the actual date doesn't determine the weekDay, it will just return what was explicitly set(since nothing is set it returns 0, so it thinks everyday is Sunday). Any recommendations on what I can do?
-Mike
-Mike
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.