display date as ISO 8601


/ Published in: Ruby
Save to your folder(s)

alternative to using DateTime.now.to_s


Copy this code and paste it in your HTML
  1. "#{event.start_day.strftime("%F")}T#{event.start_time.strftime("%T%z")}"

Report this snippet


Comments


You need to login to view comments.