Solved

How to convert Java.util.Date.time() to CCYYMMDD?

Posted on 2006-11-15
2
522 Views
Last Modified: 2012-08-14
Dear Experts,

I'm getting File.lastmodified(), and it's returning a long number, which I assume is actually Java.util.Date.time().  

First, is that right?  

Second, how do I convert that to CCYYMMDD? (I don't care about the time)

Thanks!
BrianMc1958
0
Comment
Question by:BrianMc1958
  • 2
2 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 250 total points
ID: 17948838
System.out.println(new Date(longValue));
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 17948897
:-)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
wordappend challenge 8 143
Java array passed to SQL where clause 23 61
netstat -ano | find "8000" and taskkill /f /pid 2984 3 29
javap bin 2 24
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now