Method: HtmlGrid::DateValue#to_html

Defined in:
lib/htmlgrid/datevalue.rb

#to_html(context) ⇒ Object



32
33
34
35
36
37
# File 'lib/htmlgrid/datevalue.rb', line 32

def to_html(context)
	date = @model.send(@name)
	if(date.respond_to?(:strftime))
		date.strftime(@lookandfeel.lookup(:date_format)) 
	end
end