33 users online (0 members and 33 guests)  


  Results 1 to 2 of 2

Related

  1. Replies: 6
  1. #1
    blink's Avatar
    New User

    Status
    Offline
    Join Date
    Mar 2005
    Posts
    19

    How to subtract months from today.

    Hello all,

    How do I subtract n amount of months from current month?

    example: today is 2005-11-29 and I want to subtract 5 months to be able to get the month of 5 months ago.

  2. #2
    vinyl-junkie's Avatar
    Moderator

    Status
    Offline
    Join Date
    Sep 2005
    Posts
    721

    Re: How to subtract months from today.

    I'm not a Perl programmer, but I found a tutorial that would calculate yesterday's date

    http://www.icewalkers.com/Perl/5.8.0/pod/perlfaq4.html#How%20do%20I%20find%20yesterday's%20date%3f

    Perhaps that will help you figure out months rather than days.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more



Tags for this Thread