A single date function to subtract x days from a date yymmdd

  • Status: Closed
  • Prize: $30
  • Entries Received: 8

Contest Brief

I have a an urgent need (today) for a new single shell script function that will take two parameters and return a string with a date representation

parameter one, date string in yymmdd format
parameter two, number of days to subtract from that date

function needs to return a date string with the result subtracting the number of days parameter two

e.g. DateDiff 140724 13

would return 140711 as a return string.

This is to execute on AIX, not linux. Therefore the GNU date -d is not function is not available.
Script does not have to be original, feel free to use free online resources. Installing new libraries on AIX box is not an option.
Must use standard libraries.

Note this is an urgent need, will quickly award job and it needs to be finished in the next 3 hours approximately.

Thanks.

Recommended Skills

Public Clarification Board

  • bartoruiz
    bartoruiz
    • 11 years ago

    /drums?

    • 11 years ago
  • stream18
    stream18
    • 11 years ago

    So...the winner is... :)

    • 11 years ago
  • beydata
    Contest Holder
    • 11 years ago

    Hi All, thanks very much for your time on these entries. I will try the remaining ones this evening and award the prize by tomorrow.

    • 11 years ago
    1. SmartChoice Solutions
      SmartChoice Solutions
      • 11 years ago

      ok thank you

      • 11 years ago
  • Zatarra
    Zatarra
    • 11 years ago

    I have posted the easiest solution in AIX. You can check it :)

    • 11 years ago
  • bartoruiz
    bartoruiz
    • 11 years ago

    Any updates?

    • 11 years ago
  • SmartChoice Solutions
    SmartChoice Solutions
    • 11 years ago

    please review #4

    • 11 years ago
  • bartoruiz
    bartoruiz
    • 11 years ago

    an output of 'man date' of your system will help a lot.

    • 11 years ago
  • beydata
    Contest Holder
    • 11 years ago

    sorry, just noticed your previous message. But the answer is no now obviously.

    • 11 years ago
  • bartoruiz
    bartoruiz
    • 11 years ago

    Does you date binary have support for '-v' switch? ....I don't have AIX but BSD is rather similar and works with it.

    • 11 years ago

Show more comments

How to get started with contests

  • Post your contest

    Post Your Contest Quick and easy

  • Get tons of entries

    Get Tons of Entries From around the world

  • Award the best entry

    Award the best entry Download the files - Easy!

Post a Contest Now or Join us Today!