Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

rails date field default today

<%= f.date_field :birthday, :value => Time.now.strftime('%Y-%m-%d') %>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #rails #date #field #default #today
ADD COMMENT
Topic
Name
8+9 =