我想格式化一个日期对象,以便我可以显示诸如"7月3日"或"10月1日"之类的字符串.我在Date.strftime中找不到生成"rd"和"st"的选项.有人知道怎么做吗?
ruby strftime
ruby ×1
strftime ×1