Aspose::Words::Saving::XlsxSaveOptions::set_DateTimeParsingMode method

XlsxSaveOptions::set_DateTimeParsingMode method

Sets the mode that specifies how document text is parsed to identify date and time values. The default value is UseCurrentLocale.

void Aspose::Words::Saving::XlsxSaveOptions::set_DateTimeParsingMode(Aspose::Words::Saving::XlsxDateTimeParsingMode value)

Examples

Shows how to specify autodetection of the date time format.

auto doc = System::MakeObject<Aspose::Words::Document>(System::String(get_MyDir() + u"Xlsx DateTime.docx"));

auto saveOptions = System::MakeObject<Aspose::Words::Saving::XlsxSaveOptions>();
// Specify using datetime format autodetection.
saveOptions->set_DateTimeParsingMode(XlsxDateTimeParsingMode::Auto);

doc->Save(get_ArtifactsDir() + u"XlsxSaveOptions.DateTimeParsingMode.xlsx", saveOptions);

See Also