System Time & Date Stamp

Posted on 2006-11-02
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.


Question by:LouAtColumn
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
LVL 37

Expert Comment

ID: 17861384

can you post your code ?

Author Comment

ID: 17861426
Is it possible for you to take a quick stab at a few ideas before I post some code?

LVL 86

Accepted Solution

CEHJ earned 75 total points
ID: 17861785
import java.text.SimpleDateFormat;
import java.text.DateFormat;
SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

LVL 92

Assisted Solution

objects earned 75 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

Author Comment

ID: 17862460
Fantastic, Fast, & Functional.

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

Expert Comment

ID: 17862502

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses

734 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