aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes Date in long format like in Java Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Date in long format like in Java" Watch "Date in long format like in Java" New topic
Author

Date in long format like in Java

Mary Cole
Ranch Hand

Joined: Dec 02, 2000
Posts: 362
Hi,

I have 2 date fileds with calendars. iwant to compare the dates so that I can do calculations based on the difference between the date. Is there a way to convert the date in long format like in java and compare it
Thanks in advance

[ January 09, 2007: Message edited by: Mary Cole ]

[edit - remove code tags - Eric]
[ January 09, 2007: Message edited by: Eric Pascarello ]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
Play with


Eric
Mary Cole
Ranch Hand

Joined: Dec 02, 2000
Posts: 362
How do I get the difference....like if its 10 days or 15 days or 365 days or 5 yrs
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
d2-d1 gives you milliseconds

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Date in long format like in Java
 
Similar Threads
What's Wrong With My Select.add()
how is the life in [deleted] Mumbai?
tiger beta
Problem with SimpleDateFormat
Conversion of String to Date