get date and time in android programmatically code example
Example 1: code to get date and time in android
SimpleDateFormat.getDateInstance().format(Date())
Example 2: code to get date and time in android
SimpleDateFormat.getTimeInstance().format(Date())