Hi,
First of all, thanks for this useful module.
I need to replace all date strings in a text to a standardized ISO YYYY-MM-DD. Unfortunately, Date::Extract returns DateTime objects and not the original strings. Hopefully an option can be added for this?
Regards,
Steven

> I need to replace all date strings in a text to a standardized ISO YYYY-MM-DD. Unfortunately, Date::Extract returns DateTime objects and not the original strings. Hopefully an option can be added for this?

I don't understand - can't you just stringify the date object, which will
by default give you the ISO8601 formatted string?

> > I need to replace all date strings in a text to a standardized ISO
> > YYYY-MM-DD. Unfortunately, Date::Extract returns DateTime objects and
> > not the original strings. Hopefully an option can be added for this?

>
> I don't understand - can't you just stringify the date object, which
> will
> by default give you the ISO8601 formatted string?

I want to replace the *original* strings (which can be of various formats: "13 Nov 1986", "tomorrow", what have you) *into* ISO8601 strings.
BTW, I published an alt implementation on CPAN[1]. Please tell me if it's something you can consider for Date::Extract so I can pull the alt implementation.
[1] https://metacpan.org/release/Alt-Date-Extract-SHARYANTO
Regards,
Steven

> I need to replace all date strings in a text to a standardized ISO
> YYYY-MM-DD. Unfortunately, Date::Extract returns DateTime objects and
> not the original strings. Hopefully an option can be added for this?

> > I need to replace all date strings in a text to a standardized ISO
> > YYYY-MM-DD. Unfortunately, Date::Extract returns DateTime objects and
> > not the original strings. Hopefully an option can be added for this?

Hi Steven,
You now have comaint on Date::Extract. :)
I believe the most canonical repo is https://github.com/bestpractical/date-extract. Feel free to fork it. But please do, of course, confirm that that repo has the latest on CPAN.
You're welcome to list your fork as the canonical repo in the dist metadata.
Thanks,
Shawn