Solved

System Time & Date Stamp

Posted on 2006-11-02
6
205 Views
Last Modified: 2010-03-31
Hi all,

I must be missing something around getting the system time.  I'd like to capture the system date and time during a process.

I keep getting "cannot resolve symbol" during compilation on both DateFormat and SimpleDateFormat.


I'm importing java.util.*  But cannot figure why the compiler isn't liking this.


Halp!


Thanks
0
Comment
Question by:LouAtColumn
6 Comments
 
LVL 37

Expert Comment

by:momi_sabag
Comment Utility
hi

can you post your code ?
0
 

Author Comment

by:LouAtColumn
Comment Utility
Is it possible for you to take a quick stab at a few ideas before I post some code?


TIA
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 75 total points
Comment Utility
import java.text.SimpleDateFormat;
import java.text.DateFormat;
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 92

Assisted Solution

by:objects
objects earned 75 total points
Comment Utility
> I'm importing java.util.*  But cannot figure why the compiler isn't liking this.

they are in the java.text package so u need
import java.text.*;
easiest way to resolve these sort of probems is to cherck the javadoc
http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html
0
 

Author Comment

by:LouAtColumn
Comment Utility
Yes!
Fantastic, Fast, & Functional.

Upped to 150 and split because you both answered so close timewise.
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
:-)
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now