Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2004
    Posts
    37

    Unanswered: Getting date -1 value

    I am trying to get the date -1 value in one of the Variable.

    TEST_DATE=date '+%Y-%m-%d'

    echo "TODAY's DATE " $TEST_DATE

    TODAY's DATE 2005-01-07

    How can I assign yesterday's date, "2005-01-06" to TEST_DATE variable..

    Any help is appreciated..

  2. #2
    Join Date
    Apr 2004
    Location
    Boston, MA
    Posts
    325
    Quote Originally Posted by gomes009
    I am trying to get the date -1 value in one of the Variable.

    TEST_DATE=date '+%Y-%m-%d'

    echo "TODAY's DATE " $TEST_DATE

    TODAY's DATE 2005-01-07

    How can I assign yesterday's date, "2005-01-06" to TEST_DATE variable..

    Any help is appreciated..
    try http://home.comcast.net/~j.p.h/cus-faq.html
    Appendix A:
    vlad
    +-----------------------+
    | #include <disclaimer.h> |
    +-----------------------+

  3. #3
    Join Date
    Feb 2004
    Posts
    37
    Thanks Vlad,

    It helps...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •