↧
How to get current time in formatted form in android?
Here is a simple code to get the current time in android in your own format. long tim=System.currentTimeMillis(); SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss"); String curTime...
View ArticleHow to Convert a string to date in JAVA ?
Hi, For converting string to a date in JAVA use the following code. import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static void main(String[] args) throws Exception...
View Article