display date as ISO 8601


/ Published in: Ruby

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

RSS Icon Subscribe to comments

You need to login to post a comment.