aspose file tools
The moose likes Beginning Java and the fly likes Converting a date to numeric Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Converting a date to numeric" Watch "Converting a date to numeric" New topic
Author

Converting a date to numeric

Jennifer Sohl
Ranch Hand

Joined: Feb 28, 2001
Posts: 455
We have "dates" in one of our databases that are six position numeric fields. I need to take a user keyed date and convert it to a six digit numeric field so I can compare it to the data in the DB. How can I do this?
Any help is greatly appreciated!!
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
The Java API provides several classes that help you manipulate dates. Perhaps one of these can help you out:
SimpleDateFormat
DateFormat
Date
These are just a few of the classes I found. See details and links to other classes in the API docs.
Layne


Java API Documentation
The Java Tutorial
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Converting a date to numeric
 
Similar Threads
How can I convert numeric to words.
Exception
Accessing Date columns from Excel worksheets
POI apache Reading Excel (strange case)
Convert numeric to words