diff --git a/packages/Webkul/Admin/src/Resources/views/components/attributes/edit/date.blade.php b/packages/Webkul/Admin/src/Resources/views/components/attributes/edit/date.blade.php index b7e2cec9f..c770aa5ad 100755 --- a/packages/Webkul/Admin/src/Resources/views/components/attributes/edit/date.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/components/attributes/edit/date.blade.php @@ -1,8 +1,20 @@ +@php + if (! empty($value)) { + if ($value instanceof \Carbon\Carbon) { + $value = $value->format('Y-m-d'); + } elseif (is_string($value)) { + $value = \Carbon\Carbon::parse($value)->format('Y-m-d'); + } + } +@endphp + + +