com.aspose.words
Class XlsxDateTimeParsingMode

java.lang.Object
    extended by com.aspose.words.XlsxDateTimeParsingMode

public class XlsxDateTimeParsingMode 
extends java.lang.Object

Utility class containing constants. Specifies how document text is parsed to identify date and time values.

Example:

Shows how to specify autodetection of the date time format.
Document doc = new Document(getMyDir() + "Xlsx DateTime.docx");

XlsxSaveOptions saveOptions = new XlsxSaveOptions();
// Specify using datetime format autodetection.
saveOptions.setDateTimeParsingMode(XlsxDateTimeParsingMode.AUTO);

doc.save(getArtifactsDir() + "XlsxSaveOptions.DateTimeParsingMode.xlsx", saveOptions);

Field Summary
static final intUSE_CURRENT_LOCALE = 0
           The datetime format set for the current thread is used first to parse string values. If the parsing fails, other common datetime formats are tried.
static final intAUTO = 1
           The datetime format used in a document is determined automatically. This may take additional time.
 

Field Detail

USE_CURRENT_LOCALE = 0

public static final int USE_CURRENT_LOCALE
The datetime format set for the current thread is used first to parse string values. If the parsing fails, other common datetime formats are tried.

AUTO = 1

public static final int AUTO
The datetime format used in a document is determined automatically. This may take additional time.

See Also:
          Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
          Aspose.Words Support Forum - our preferred method of support.