Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

code to get date and time in android

String dateStr = "04/05/2010"; 

SimpleDateFormat curFormater = new SimpleDateFormat("dd/MM/yyyy"); 
Date dateObj = curFormater.parse(dateStr); 
SimpleDateFormat postFormater = new SimpleDateFormat("MMMM dd, yyyy"); 

String newDateStr = postFormater.format(dateObj); 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #code #date #time #android
ADD COMMENT
Topic
Name
2+5 =