A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Help with DateFormat!?
Joined: Nov 17, 2003
Dec 22, 2003 12:47:00
Why can't i compile this code?
dayformat = new
day = new
Joined: Aug 20, 2001
Dec 22, 2003 12:51:00
What error are you getting? Chances are, if you read the error message, you will know what's wrong (javac is usually pretty good at telling you what's wrong....)
D:\user\java\sources\Test.java:7: cannot resolve symbol symbol : variable dagformat location: class Test String now =dagformat.format(day); ^ 1 error Tool completed with exit code 1
If you take a look, you will see that it doesn't know what "dagformat" is. This is correct. The variable that you have is "dayformat"
Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
I agree. Here's the link:
subject: Help with DateFormat!?
newbie needs to know how do get todays date
Problem with GregorianCalendar
converting date string into Calendar.Day of Year
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014