Noob DateTime question

Hi, you can define an instance method on the Order model class that returns the time portion of the datetime field. For example,

def get_time

self.orderdate.strftime (‘%H:%M’)

end

Now, self is referencing the current Order instance.

Good luck,

-Conrad