calamine icon indicating copy to clipboard operation
calamine copied to clipboard

Add DateFormat to DataType::Datetime

Open econaxis opened this issue 2 years ago • 0 comments

For my use case, I need to recover the original string as Excel displays it. To do this, I need to know the date format (e.g. "Jan 12 2003" vs "01-12-03").

This PR adds a format value to DataType::Datetime and functions to display the date given a date float and a format specifier.

I will add tests for the new stuff after you give the go-ahead to add this feature to the crate.

econaxis avatar Sep 20 '22 02:09 econaxis