A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
Formatting SSN...and time
Joined: Nov 22, 2008
Oct 22, 2001 14:34:00
I have some questions about formatting in
How do I format a social security number in java?
How do I format time in the hh:mm:ss format?
Thanks in advance!
Joined: Jan 09, 2001
Oct 22, 2001 14:42:00
I don't know about ss# but for date/time use the following:
sdf = new
( "hh:mm:ss" );
It can be found in java.text.* package.
Joined: May 17, 2001
Oct 22, 2001 19:21:00
Formatting SSN where? Where are you wanting to put it? Or are you talking about data entry on a screen?
It is sorta covered in the
JavaRanch Style Guide
subject: Formatting SSN...and time
Simple Person Program
Java Data and time pattern
Steps to check out from svn by ANT script:
phone number formatter in struts2
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014