Android provides controls for the user to choose a time or pick a day as ready-to-use dialogs. Each picker provides controls for selecting each part of plenty of your time (hour, minute, AM/PM) or time frame (month, day, year). Using these pickers helps to ensure that your users can choose a moment or time frame that is valid, formatted correctly, and adjusted to a person’s locale
Date Time Picker Application Android Source Code
is for selecting date and time & it will show selected date & time in flash message.