cklester
1001
5
Laravel

How to Pass Date Field to Date Formfield

Posted 2 years ago by cklester

I'm trying to set the value attribute of a date input to the current value in the database, but nothing shows up there. I can do the time field just fine. But the date field on the form shows the placeholder, 'mm/dd/yyyy,' instead of the date value I send it. I've even tried a manual entry of a date, but the form field is still blank! I have a date in the record, and I'm trying to allow the user to change it, but I can't populate the form with the current date.

What's the secret?! :D

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.