How to get today's day of previous month in ruby?
Posted
by Horace Ho
on Stack Overflow
See other posts from Stack Overflow
or by Horace Ho
Published on 2010-05-10T03:22:28Z
Indexed on
2010/05/10
3:28 UTC
Read the original article
Hit count: 219
Is there a built-in function to get the day in last month, same as today? Examples:
2010/05/02 -> 2010/04/02
2010/05/15 -> 2010/04/15
2010/05/31 -> 2010/04/30
Thanks!
© Stack Overflow or respective owner