Flowframe / laravel-trend

Generate trends for your models. Easily generate charts or reports.
MIT License
606 stars 64 forks source link

Configurable date formats #37

Open darrena092 opened 1 year ago

darrena092 commented 1 year ago

Hi!

Might put in a PR for this if there's interest in it.

I'm using this in a project, and found myself needing to change the date formats, as we don't tend to use Y-m-d much here in the UK (at least, users don't generally like it). I did this by just overriding the getCarbonDateFormat function.

It might be nice if we had some functions like useDateFormat('d/m/Y') and useTimeFormat('H:i:00') etc to make this a bit more straightforward.

usmansaleem489 commented 3 months ago

I get around this by doing: image