aspose file tools*
The moose likes Beginning Java and the fly likes import java.util.date; Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "import java.util.date;" Watch "import java.util.date;" New topic
Author

import java.util.date;

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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

Joined: Aug 10, 2001
Posts: 3879
Ronildo -- what problems are you having? Can you tell us what you want to do, and what errors you've been encountering?
Kyle


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
Ajith Kallambella
Sheriff

Joined: Mar 17, 2000
Posts: 5782
Moving this discussion to Java in General(beginner) forum ..


Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
Do you mean java.util.Date?


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Corey McGlone
Ranch Hand

Joined: Dec 20, 2001
Posts: 3271
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 ]

SCJP Tipline, etc.
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
Some other helpful classes to go along with Date. GregorianCalendar, SimpleDateFormat and Calendar.
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9043
    
  10
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.


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9043
    
  10
What part of Brazil are you from?
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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

Joined: Sep 29, 2000
Posts: 8521
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


"JavaRanch, where the deer and the Certified play" - David O'Meara
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: import java.util.date;
 
Similar Threads
Is importing a class same as extending a class?
How to get the difference between 2 dates ?
Getting the maximum of two dates and date comparison
Converet from java.sql.Timestamp to java.util.Date
java.util.Date - after function not considering time?