• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

import java.util.date;

 
Anonymous
Ranch Hand
Posts: 18944
  • 0
  • send pies
  • Quote
  • Report post to moderator
Hello, my English is very bad, I am Brazilian and have just made the register here!

I am having a lot of difficulties, have just begun to program in JAVA
Good, I have been having problems with the class java.util.date
Do you have some examples or study aids of as it uses that class to order for e-mail?
Thank you
I await answer, it excuses him/it inconvenience
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ronildo -- what problems are you having? Can you tell us what you want to do, and what errors you've been encountering?
Kyle
 
Ajith Kallambella
Sheriff
Posts: 5782
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this discussion to Java in General(beginner) forum ..
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you mean java.util.Date?
 
Corey McGlone
Ranch Hand
Posts: 3271
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you can tell us what kind of problems you're having, we can probably try to help you some more. For example, if you're getting a compiler error, post it - we can probably tell right away what's happening.
Be sure to check out the API for java.util.Date as there's lots of great information about it there.
As Thomas Paul alluded to in the previous post, Java is case-sensitive. There is no such class as java.util.date, but there is a java.util.Date. Make sure that the case is correct.
I hope that helps,
Corey
[ March 27, 2002: Message edited by: Corey McGlone ]
 
Paul Stevens
Ranch Hand
Posts: 2823
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some other helpful classes to go along with Date. GregorianCalendar, SimpleDateFormat and Calendar.
 
Marilyn de Queiroz
Sheriff
Posts: 9059
12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bem-vindo, Ronildo.

Do you have some examples or study aids of how it uses that class to order for e-mail?

Here is an assignment which requires the use of the java.util.Date class.

I do not understand your question about e-mail.
 
Marilyn de Queiroz
Sheriff
Posts: 9059
12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What part of Brazil are you from?
 
Anonymous
Ranch Hand
Posts: 18944
  • 0
  • send pies
  • Quote
  • Report post to moderator
it is better not using the date() object, �cause its overrides the api. You better check Calendar() or GregorianCalendar() for date operations. With GregorianCalendar calendar = new GregorianCalendar(int year, int month, int day) you will initialize a new Date based on the Arguments.
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
da funky chicken :roll:
Please change your name to be compliant with JavaRanch's naming policy.
Your displayed name should be 2 separate names with more than 1 letter each. We really want this to be a professional forum and would prefer that you use your REAL name.
Thanks,
Cindy
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic