Posted By

jhenry on 06/04/08


Tagged

date rails ruby microformats iso 8601


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

webstic


display date as ISO 8601


 / Published in: Ruby
 

alternative to using DateTime.now.to_s

  1. "#{event.start_day.strftime("%F")}T#{event.start_time.strftime("%T%z")}"

Report this snippet  

You need to login to post a comment.