Back to project page Android-Todo-Application.
The source code is released under:
MIT License
If you think the Android project Android-Todo-Application listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.samvandenberge.todo.util; //from ww w .ja v a 2 s . c o m import java.util.Date; import java.text.SimpleDateFormat; import java.util.Locale; public class Helper { /** * Get datetime * * @return */ public static String getDateTime() { SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.getDefault()); Date date = new Date(); return dateFormat.format(date); } }