Search code examples
javaandroidiso8601

Current Date Time in " YYYY-MM-DDTHH:MM.000z" (ISO 8601) format in Android


Hello i am very new to android Development , working on a Android Code right now ,I need to Get the current date and time in this Format

YYYY-MM-DDTHH:MM.000z

For Example 2013-11-26T03:16:00.000Z

Any Help will be really Appreciated


Solution

  • There is documentation readily available for Android's SimpleDateFormat class at:

    http://developer.android.com/reference/java/text/SimpleDateFormat.html

    Also appears to have been answered before. Among other places.