Java Year Get getYear(String index)

Here you can find the source of getYear(String index)

Description

get Year

License

Open Source License

Declaration

public static int getYear(String index) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static int getYear(String index) {
        String[] dateTmp = index.split("-");
        return Integer.parseInt(dateTmp[1]);
    }//from  w ww  .  j a v  a  2s.c om
}

Related

  1. getYear(String date)
  2. getYear(String date)
  3. getYear(String dateKey)
  4. getYear(String datetime)
  5. getYear(String day)
  6. getYear(String referralId)
  7. getYear(String startTime)
  8. getYear(String str_date)
  9. getYear(String strDate)