is there a better way to handle the dates <https:/...
# cfml-general
g
is there a better way to handle the dates https://trycf.com/gist/68c074977c160196daea02466d0b7ebf/lucee5?theme=monokai for first one which shows ambigious
r
what are you trying to accomplish that "Dateformat()" or "LSDateFormat()" cannot accomplish?
t
No solution, if you don't know what region/country that date 07/02/2024 is for, you don't know if it is a FEB date or a JULY date
👆🏻 1
👆 1
m

https://www.youtube.com/watch?v=-BNwiqDGz5g

seriously though, for one of my clients, we implemented a date format definition where the users need to set the specific date format they want to use (i.e. mm/dd/yyyy or dd/mm/yyyy) and then we display the dates accordingly. Even that or you dictate the date format and specify the date format wherever a date is being displayed.