public Date convertStringToDate(String s)
    {
        
        StringTokenizer temp = new StringTokenizer(s, "-");
        int year = Integer.parseInt(temp.nextToken());
        int month = Integer.parseInt(temp.nextToken());
        int date = Integer.parseInt(temp.nextToken());
        
        Date d = new Date(year-1900, month-1, date);
        
        System.out.println(Integer.toString(year));
        
       // Date dd = new Date();
        return d;
    }