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.
Printable View
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.
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?