# Current date and time

**URL:** <https://www.ruby-forum.com/t/current-date-and-time/253634>\
**Category:** Deployment\
**Tags:** ruby-gnome\
**Created:** [January 24, 2020, 12:06pm UTC](https://www.ruby-forum.com/t/current-date-and-time/253634 "2020-01-24T12:06:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arputhavarnam](https://www.ruby-forum.com/user_avatar/www.ruby-forum.com/arputhavarnam/32/1286_2.png) [@arputhavarnam](https://www.ruby-forum.com/u/arputhavarnam)\
**Post date:** [January 24, 2020, 12:06pm UTC](https://www.ruby-forum.com/t/current-date-and-time/253634/1 "2020-01-24T12:06:22Z")

</div>

**How can i get current date and time**

#date  
.form\_field  
= text\_field product, :start\_date, :class =\> “width\_100\_percent”, :type =\> “date”  
.form\_field  
= text\_field product, :start\_time, :timepicker =\> true, :class =\> “width\_100\_percent”, :type =\>“time”
