Created
December 20, 2018 06:50
-
-
Save abhianair/621f0f07e3d6e61df0424d32ea6ea11c to your computer and use it in GitHub Desktop.
datetime
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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