How to Pass Date Field to Date Formfield

Posted 1 year 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.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels

Reply to

Use Markdown with GitHub-flavored code blocks.