Skip to content

Instantly share code, notes, and snippets.

@abhianair
Created December 20, 2018 06:50
Show Gist options
  • Save abhianair/621f0f07e3d6e61df0424d32ea6ea11c to your computer and use it in GitHub Desktop.
Save abhianair/621f0f07e3d6e61df0424d32ea6ea11c to your computer and use it in GitHub Desktop.
datetime
<div><%= t = Time.parse(appointment.time) %>
<%= date = appointment.date %>
<%= d = Date.new(date.year,date.month,date.day) %>
<%= time = DateTime.new(d.year, d.month, d.day, t.hour, t.min, t.sec) %></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment