|
-
Jul 12th, 2001, 12:30 PM
#1
date question
how can i modify a variable i named DueDate in the format (MMM,d, yyyy h:mm a) I have to convert the duedate string into a date object uysing the parse method but i dont know how to implement this. Any help is appreciated.
-
Jul 12th, 2001, 04:39 PM
#2
Dazed Member
Just curious..... Why didnt you create a Date object from the onset? "I have to convert the duedate string into a date object"
java.util.Date;
Has 6 constructors. One of them takes a string as an arguement.
public Date(String s);
Couldnt you just pass the string as an arguement to the date constructor and that would convert it to a Date object?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|