App Inventor Date And Time Pickers

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
we have added a couple of Pickers to App Inventor you can see them in the user interface drawer one of them is a time picker and the other one is a date picker as you can see both of them are based on buttons so you could customize them as any other buttons for instance for the time picker we could say something like pick a time and we could change the shape of the button or for the day picker we're actually going to upload an image that I already have preparing here as you can see you can see the text in there so we are kind of divided the way of using this to new components is very very easy I'm going to add a label so that we can write the output of the pickers to the label each of the components has an after band and it is after this event is code that you can play with the data as set in the date picker or in the time picker so let's play with the with a label we're going to set the text to whenever we get in the picker so for instance for the first one time picker one let's get a time picker our for instance so let's click and pick a time we are gonna because we are setting the hour I'm gonna set the hour to six and because it is p.m. you're gonna see what is happening in the label it's actually printing 18 if I had picked a a.m. it would actually print 6 so this is how the time picker works for the date picker is really really similar we can get the day we can get the month we can get the year let's duplicate this block and let's try and get the day first I'll click on the image and the day is say 28 click down and now the label prints 28 there is a special method here because in Java January is zero and December is 11 so if we pick at December in here let me see and pick December we will see that it actually prints out 11 so we have prepared a method called month in text and this guy is actually should be printing December so those are the only things that you need to know to work with time and date pickers
Info
Channel: Jose Dominguez
Views: 63,454
Rating: undefined out of 5
Keywords: MIT, App Inventor, Components, date picker, time picker
Id: UbA3pDQALKY
Channel Id: undefined
Length: 2min 47sec (167 seconds)
Published: Mon May 19 2014
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.