Display Current Date and Time Demo in Android

Submitted by: 
Operating System: 
Visitors have accessed this post 7874 times.

This is a simple program that display the current time in running mode, the code returns the time in a 12-hour format (08:24:05). The current date is in a nice format (October 01,2012).This is possible using concatenation of strings.

This simple little program is easy to create and can add variety and value to your Android programs.


Comments

Where is the code ?
I am new in sourcecodester...

salamat po sir! it helps :D :D

What amazing output

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • You may insert videos with [video:URL]
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <th> <img> <h1> <h2> <h3> <iframe> [video]
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <asp>, <c>, <cpp>, <csharp>, <css>, <html4strict>, <java>, <javascript>, <mysql>, <php>, <python>, <sql>, <vb>, <vbnet>. The supported tag styles are: <foo>, [foo].
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.