Java SQL Date getCurrDay()

Here you can find the source of getCurrDay()

Description

get Curr Day

License

Apache License

Declaration

public static int getCurrDay() 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Calendar;

import java.util.Locale;

public class Main {
    public static int getCurrDay() {
        Calendar cal = Calendar.getInstance(Locale.CHINA);
        cal.setTime(getNowDate());//w w w.  ja  va 2 s.  c  o  m
        return cal.get(5);
    }

    public static java.sql.Date getNowDate() {
        java.util.Date date = new java.util.Date();
        return new java.sql.Date(date.getTime());
    }
}

Related

  1. convert(Class propertyType, Object value, String propertyName)
  2. convert(Object o)
  3. convertTo(Class clazz, Object obj)
  4. convertTo(final Class> clazz, Object obj)
  5. getClasses()
  6. getCurrentYear()
  7. getDayOfPerMonth(String theDataStr)
  8. getDiffDays(String begin_dt, String end_dt)
  9. getEndWeekDayOfMonth(String year, String month)