d.to_datetime â datetime Instance Public methods Returns a DateTime object which denotes self.
to_json(*args) Instance Public methods Stores class name (Date) with Julian year y, month m, day d and Day of Calendar Reform sg as JSON string
d.to_s â string Instance Public methods Returns a string in an ISO 8601 format (This method doesn't use the expanded representations). Date.new(2001,2,3).to_s #=> "2001-02-03"
d.to_time â time Instance Public methods Returns a Time object which denotes self.
d.tuesday? â bool Instance Public methods Returns true if the date is Tuesday.
d.upto(max) â enumeratord.upto(max){|date| ...} â self Instance Public methods This method is equivalent to step(max, 1){|date| â¦}.
d.wday â fixnum Instance Public methods Returns the day of week (0-6, Sunday is zero). Date.new(2001,2,3).wday #=> 6
d.wednesday? â bool Instance Public methods Returns true if the date is Wednesday.
d.iso8601 â stringd.xmlschema â string Instance Public methods This method is equivalent to strftime('%F').
d.yday â fixnum Instance Public methods Returns the day of the year (1-366). Date.new(2001,2,3).yday #=> 34
Page 156 of 11844