File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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?
I agree. Here's the link:
subject: Formatting SSN...and time
phone number formatter in struts2
Java Data and time pattern
Steps to check out from svn by ANT script:
Simple Person Program
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014