Java Day GetDay(String agmipDate)

Here you can find the source of GetDay(String agmipDate)

Description

Get Day

License

Open Source License

Declaration

public static String GetDay(String agmipDate) throws ParseException 

Method Source Code


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

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class Main {
    public static final SimpleDateFormat apsim = new SimpleDateFormat("dd/MM/yyyy");

    public static String GetDay(String agmipDate) throws ParseException {
        Date date = apsim.parse(agmipDate);
        Calendar c = Calendar.getInstance();
        c.setTime(date);//from  ww  w . jav a  2  s  .  c om
        return c.get(Calendar.DAY_OF_YEAR) + "";
    }
}

Related

  1. getDay(Date date)
  2. getDay(Date date, HashMap date2day)
  3. getDay(java.util.Date date)
  4. getDay(SimpleDateFormat df, String dateStr)
  5. getDay(String aDate)
  6. getDAY(String strDate)
  7. getDay(String string)
  8. getDay(String tempdat, Locale locale)
  9. getDayAfter(String dateformat, String day, int filed, int delta)