Results 1 to 2 of 2

Thread: date question

  1. #1
    Dimension
    Guest

    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.

  2. #2
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418
    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
  •  



Click Here to Expand Forum to Full Width