Skip to content

Instantly share code, notes, and snippets.

@adagio
Created August 18, 2014 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adagio/063ad3ee63cea2ea2764 to your computer and use it in GitHub Desktop.
Save adagio/063ad3ee63cea2ea2764 to your computer and use it in GitHub Desktop.
Formatted date and time in RoR View
<div class="thisinstant">
<div class="date">Date: <%= @strdate %></div>
<div class="time">Time: <%= @strtime %><div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment