Java Year Get getYear(String date)

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

Description

get Year

License

Open Source License

Declaration

public static String getYear(String date) 

Method Source Code

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

public class Main {
    public static String getYear(String date) {
        return date.substring(6);
    }// w  ww. j  a va 2 s .c  o  m

    public static String substring(String input, int maxLength) {
        if (input == null)
            return null;
        else
            return (input.length()) <= maxLength ? input : input.substring(0, maxLength);
    }
}

Related

  1. GetYear(String agmipDate)
  2. getYear(String argDate)
  3. getYear(String date)
  4. getYear(String date)
  5. getYear(String date)
  6. getYear(String dateKey)
  7. getYear(String datetime)
  8. getYear(String day)
  9. getYear(String index)