Java org.apache.poi.ss.usermodel DateUtil fields, constructors, methods, implement or subclass

Example usage for Java org.apache.poi.ss.usermodel DateUtil fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.poi.ss.usermodel DateUtil.

The text is from its open source code.

Field

Method

doubleconvertTime(String timeStr)
Converts a string of format "HH:MM" or "HH:MM:SS" to its (Excel) numeric equivalent
doublegetExcelDate(LocalDate date)
Given a LocalDate, converts it into a double representing its internal Excel representation, which is the number of days since 1/1/1900.
doublegetExcelDate(LocalDateTime date)
Given a LocalDateTime, converts it into a double representing its internal Excel representation, which is the number of days since 1/1/1900.
doublegetExcelDate(Date date)
Given a Date, converts it into a double representing its internal Excel representation, which is the number of days since 1/1/1900.
doublegetExcelDate(LocalDate date, boolean use1904windowing)
Given a LocalDate, converts it into a double representing its internal Excel representation, which is the number of days since 1/1/1900.
doublegetExcelDate(LocalDateTime date, boolean use1904windowing)
Given a LocalDateTime, converts it into a double representing its internal Excel representation, which is the number of days since 1/1/1900.
doublegetExcelDate(Date date, boolean use1904windowing)
Given a Date, converts it into a double representing its internal Excel representation, which is the number of days since 1/1/1900.
doublegetExcelDate(Calendar date, boolean use1904windowing)
Given a Date in the form of a Calendar, converts it into a double representing its internal Excel representation, which is the number of days since 1/1/1900.
CalendargetJavaCalendarUTC(double date, boolean use1904windowing)
Get EXCEL date as Java Calendar with UTC time zone.
DategetJavaDate(double date)
Given an Excel date with using 1900 date windowing, and converts it to a java.util.Date.
DategetJavaDate(double date, TimeZone tz)
Given an Excel date with using 1900 date windowing, and converts it to a java.util.Date.
DategetJavaDate(double date, boolean use1904windowing)
Given an Excel date with either 1900 or 1904 date windowing, converts it to a java.util.Date.
booleanisADateFormat(int formatIndex, String formatString)
Given a format ID and its format String, will check to see if the format represents a date format or not.
booleanisADateFormat(ExcelNumberFormat numFmt)
Given a format ID and its format String, will check to see if the format represents a date format or not.
booleanisCellDateFormatted(Cell cell)
Check if a cell contains a date Since dates are stored internally in Excel as double values we infer it is a date if it is formatted as such.
booleanisCellInternalDateFormatted(Cell cell)
Check if a cell contains a date, checking only for internal excel date formats.
booleanisValidExcelDate(double value)
Given a double, checks if it is a valid Excel date.
DateparseYYYYMMDDDate(String dateStr)
Converts a string of format "YYYY/MM/DD" to its (Excel) numeric equivalent
voidsetCalendar(Calendar calendar, int wholeDays, int millisecondsInDay, boolean use1904windowing, boolean roundSeconds)