Skip to content
This repository has been archived by the owner on Jun 26, 2022. It is now read-only.

Implement different Dateformat #45

Closed
Jun-ocx opened this issue Jan 19, 2021 · 1 comment
Closed

Implement different Dateformat #45

Jun-ocx opened this issue Jan 19, 2021 · 1 comment

Comments

@Jun-ocx
Copy link

Jun-ocx commented Jan 19, 2021

in my project, I want it to show in the format as "MM/DD/YYYY" in US
I've tried

->format('MM-DD-YYYY)
->format('MM/DD/YYYY)
->dateFormat('MM-DD-YYYY')
->dateFormat('MM/DD/YYYY')

none of them is working

->dateFormat('MM/DD/YYYY') seems to work but gives an error message: The Expires must be in the format dd/MM/yyyy

Screen Shot 2021-01-19 at 1 46 28 PM

also when I try to use it with ->minDate(Carbon::now()), it gives the totally wrong date to start with

Screen Shot 2021-01-19 at 1 48 08 PM

@techouse
Copy link
Owner

techouse commented Feb 14, 2021

Hey!

As this module extracts locales from MomentJS it only supports locales that MomentJS supports and en-US is not one of them. This is a known bug of MomentJS that hasn't been fixed in over 2 years.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants