我現在面臨一個奇怪的問題,Carbon::parse("25/10/1980")
引發以下錯誤:碳::解析(「25/10/1980」)拋出一個錯誤
Exception with message 'DateTime::__construct(): Failed to parse time string (25/12/1980) at position 0 (2): Unexpected character'
雖然有沒有問題任何,如果本月(10)交換與天(25)像這樣的地方:
Carbon::parse("10/25/1980")
我應該如何解析"d/m/Y"
字符串?
謝謝,工程就像一個魅力 –