Go Back   Android Forums > Android Development > Application Development

Application Development Dev Lounge for the Coder Folks



Reply
 
LinkBack Thread Tools
Old March 16th, 2010, 10:54 AM   #1 (permalink)
New Member
 
Join Date: Mar 2010
Posts: 10
 
Device(s):
Thanks: 1
Thanked 0 Times in 0 Posts
Default Date formatted text on bitmap?

Hey all,

I'm wondering how to format a date to that it will be shown as following:
January 23 Saturday.

I want it to be displayed on a bitmap. I've been able to draw up the bitmap, which looks like this:
http://img692.imageshack.us/img692/9821/kalenderblad.png

So I'd want to place January on the red part and 23 and saturday on the striped part.
I dont think I have a problem with placing the text but i'd appreciate help with the date formatting.

Grendizer is offline  
Reply With Quote
Sponsors
Old March 16th, 2010, 12:49 PM   #2 (permalink)
Junior Member
 
Join Date: Aug 2008
Posts: 23
 
Device(s):
Thanks: 0
Thanked 8 Times in 7 Posts
Default

import java.text.SimpleDateFormat;
import java.util.Date;

final Date date = new Date( System.currentTimeMillis() );
final SimpleDateFormat formatterMonth = new SimpleDateFormat( "MMMM" );
final SimpleDateFormat formatterDateDay = new SimpleDateFormat( "d EEEE" );
final String monthText = formatterMonth.format(date);
final String dateDayText = formatterDateDay.format(date);
System.out.println( monthText );
System.out.println( dateDayText );
jon21569 is offline  
Last edited by jon21569; March 16th, 2010 at 12:52 PM.
Reply With Quote
The Following User Says Thank You to jon21569 For This Useful Post:
Grendizer (March 21st, 2010)
Reply

Bookmarks


Go Back   Android Forums > Android Development > Application Development User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Typoclock & text form date widget jbirdsf Android Themes 1 November 7th, 2010 01:22 AM
Deleted Text in Handcent Then Has 12/31/69 Date in Messages App the_animal99 Incredible - Support and Troubleshooting 5 October 5th, 2010 12:12 AM
Text Message date and time not accurate bbrad Incredible - Support and Troubleshooting 3 September 30th, 2010 10:58 AM
Incorrect date/time on text messages 0837s HTC EVO 4G 2 July 16th, 2010 10:03 PM
how to merge an array of bitmap together in one bitmap ? freeaks Android Applications 0 June 28th, 2010 02:06 AM



All times are GMT -5. The time now is 12:13 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo


SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.