Click to See Complete Forum and Search --> : date question
Dimension
Jul 12th, 2001, 12:30 PM
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.
Dillinger4
Jul 12th, 2001, 04:39 PM
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?
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.