Quantcast
Channel: CoderzHeaven » SimpleDateFormat
Browsing latest articles
Browse All 2 View Live

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 Article



Image may be NSFW.
Clik here to view.

How 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
Browsing latest articles
Browse All 2 View Live


Latest Images