?
Solved

System Time & Date Stamp

Posted on 2006-11-02
6
Medium Priority
?
213 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 37

Expert Comment

by:momi_sabag
ID: 17861384
hi

can you post your code ?
0
 

Author Comment

by:LouAtColumn
ID: 17861426
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 300 total points
ID: 17861785
import java.text.SimpleDateFormat;
import java.text.DateFormat;
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 92

Assisted Solution

by:objects
objects earned 300 total points
ID: 17861850
> 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
ID: 17862460
Yes!
Fantastic, Fast, & Functional.

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

Expert Comment

by:CEHJ
ID: 17862502
:-)
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
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…
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses
Course of the Month13 days, 6 hours left to enroll

777 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