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
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
Joined: Mar 10, 2004
Sep 26, 2005 08:44:00
I just found this resolution for a a Date issue that i'm having, Thanks very much!, but assume that Sun has resolved their lack of Date handling routines by now?
If not, i'm totally shocked!, but again assume there must be a good reason?
A SAS tool that i use has a myriad of Date handling routines and documentation!
Thanks much for any insights on this!
Joined: May 22, 2003
Sep 26, 2005 09:06:00
I'm unable to determine if you have a question. What insights are you looking for?
Calculating Java dates: Take the time to learn how to create and use dates
Working in Java time: Learn the basics of calculating elapsed time in Java
Joined: Mar 10, 2004
Sep 26, 2005 12:15:00
I quess i'm really suprised that Sun has made the Date handling so confusing, ie what ever happened to the good ole "d.getMonth" ect!
I've been trying to get this to work all morning to no avail, do you see anything obvious Steve?
$ ksh t.ksh
Note: t.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
1. Wed Sep 21 04:24:54 EDT 2005
ERROR: Cannot parse "Wed Sep 21 04:24:54 EDT 2005"
ldt= new String("Wed Sep 21 04:24:54 EDT 2005");
Date dto= new Date(ldt);
String dateString = dto.toString();
System.out.println(" 1. " + dateString);
format = new
Date parsed = format.parse(dateString);
System.out.println(" 2. " + parsed.toString());
System.out.println("ERROR: Cannot parse \"" + dateString + "\"");
Thanks for any inputs on this Steve!
I agree. Here's the link:
- it saves me about five hours per week
subject: Date issues!
Parsing data file to XML?
How to fix java method size limit 65k
requiredif Validation - Struts Client side validation
how to convert java.util.date to java.sql.date
is it advisable to use super.execute()?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013