Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2005
    Posts
    1

    Unhappy Unanswered: Need help with Date

    Hi everyone,
    need help here. In unix, we can get the system date time stamp using `date`.
    here's the problem, i need to put this into a variable and format it into
    %m%d%y. here's wat i did

    $thisdate=`date +DATE: %m/%d/%y'

    but output was only Date: when i echoed it out. My desired outout would be actually just %m%d%y.

  2. #2
    Join Date
    Jun 2004
    Posts
    20
    Try this
    echo "Date : " `date +%m/%d/%y`

  3. #3
    Join Date
    Jun 2004
    Posts
    20
    j="Date : `date +%m/%d/%y`"

Posting Permissions

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