Solved

System Time & Date Stamp

Posted on 2006-11-02
6
206 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
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 75 total points
ID: 17861785
import java.text.SimpleDateFormat;
import java.text.DateFormat;
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 92

Assisted Solution

by:objects
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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Application launch issue with Apache Tomcat 5 22
What is JNDI datasource in spring 1 50
Running Jira on Raspberry PI 2? 3 264
egit plugin on eclipse 8 38
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
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…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

920 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

16 Experts available now in Live!

Get 1:1 Help Now