• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 215
  • Last Modified:

System Time & Date Stamp

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
LouAtColumn
Asked:
LouAtColumn
2 Solutions
 
momi_sabagCommented:
hi

can you post your code ?
0
 
LouAtColumnAuthor Commented:
Is it possible for you to take a quick stab at a few ideas before I post some code?


TIA
0
 
CEHJCommented:
import java.text.SimpleDateFormat;
import java.text.DateFormat;
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
objectsCommented:
> 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
 
LouAtColumnAuthor Commented:
Yes!
Fantastic, Fast, & Functional.

Upped to 150 and split because you both answered so close timewise.
0
 
CEHJCommented:
:-)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now