Get date

How can i get current selected date from TextArea in java?
[65 byte] By [Brucepaynea] at [2007-11-27 4:01:28]
# 1

Eh? TextAreas hold text, not dates.

Are you describing the following use case? The TextArea has some text in it, including some text that might describe a date. The user selects some or all of the text (by dragging the cursor and highlighting some or all of the text). That text, if it describes a date, is used to create a Date object.

?

paulcwa at 2007-7-12 9:06:11 > top of Java-index,Java Essentials,Java Programming...
# 2
TextArea doesn't have a selected date, only selected text.
DrLaszloJamfa at 2007-7-12 9:06:11 > top of Java-index,Java Essentials,Java Programming...
# 3
In text area we specify date ...it will forward through form action ...for corresponding date , the data's dispalyed from table...
Brucepaynea at 2007-7-12 9:06:11 > top of Java-index,Java Essentials,Java Programming...
# 4
> In text area we specify date ...it will forward> through form action ...for corresponding date , the> data's dispalyed from table...You can use SimpleDateFormat to parse Strings into dates:
DrLaszloJamfa at 2007-7-12 9:06:11 > top of Java-index,Java Essentials,Java Programming...
# 5
thank u ...can we convert Timestamp to Date and how plz....
Brucepaynea at 2007-7-12 9:06:11 > top of Java-index,Java Essentials,Java Programming...
# 6
> thank u ...can we convert Timestamp to Date and how> plz....java.sql.Timestamp? And is that java.util.Date or java.sql.Date or something else? You need to be more precise.
DrLaszloJamfa at 2007-7-12 9:06:11 > top of Java-index,Java Essentials,Java Programming...
# 7
thank u ...
Brucepaynea at 2007-7-12 9:06:11 > top of Java-index,Java Essentials,Java Programming...
# 8
here using java.Sql .Timestamp ....
Brucepaynea at 2007-7-12 9:06:11 > top of Java-index,Java Essentials,Java Programming...
# 9
> here using java.Sql .Timestamp ....java.sql.Timestamp is a subclass of java.util.Datejava.sql.Timestamp timestamp = ...java.util.Date date = timestamp;
DrLaszloJamfa at 2007-7-12 9:06:11 > top of Java-index,Java Essentials,Java Programming...