askIT

Get date YYYY-mm-dd

It is possible to get the date in Android java code by using the SimpleDateFormat class.

/* Date */
DateFormat df1=new SimpleDateFormat("yyyy-MM-dd");//foramt date
String dateYYYYMMDD = df1.format(Calendar.getInstance().getTime());

Add comment

avatar_blank_60.png

Comment:

Name:

Email:

Comments

No comments yet. You can be the first one to comment. Just write your comment in the form and click on the submit button.