• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 576
  • Last Modified:

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

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
BrianMc1958
Asked:
BrianMc1958
  • 2
1 Solution
 
CEHJCommented:
System.out.println(new Date(longValue));
0
 
CEHJCommented:
:-)
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now