Results 1 to 7 of 7

Thread: deprecated getMonth() {RESOLVED}

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2002
    Posts
    72

    Red face deprecated getMonth() {RESOLVED}

    it's been a long time i didn't log in here, this forum changes a lot

    I have a very simple problem, I'm sort of "outdated", need help here.

    Code:
    import java.util.*;
    
    public class MemberManagement{
         :
         :
        // How do I return the month since getMonth() can't be used anymore and I don't understand the API, can someone correct this method for me? Besides "import java.util.*;", anything thing else needed? A full code for this part would be helpful :)
        public int getMonth(){
    	Date a=new Date();
    	return a.getMonth();
        }
    
        :
        :
    }
    Last edited by blur; Jul 3rd, 2003 at 04:07 AM.

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