Changing a date in a script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • syoung69
    New Member
    • Sep 2011
    • 19

    Changing a date in a script

    Hey folks, i am in the process of creating a page that shows info from an older software version. The script puts out a date and views as day/month/2007 but would like to show day/month/2011. Any options out there? Changing the software is not an option..

    Thanks in advance.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    take the date from the old software and add 4 years? but unless you show us the code, it’s hard to give any concrete help.

    Comment

    • syoung69
      New Member
      • Sep 2011
      • 19

      #3
      Sorry. Basicly it puts out a date in 07 and when the db uploads it shows 07. Can that be changed is my question. Can you trick it to show 2011? I have no code to show.

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        echo ("07" + 2004); ??

        Comment

        • syoung69
          New Member
          • Sep 2011
          • 19

          #5
          I will try that. Thanks for your time. Still abit wet behind the ears.

          Comment

          • syoung69
            New Member
            • Sep 2011
            • 19

            #6
            Works perfectly... Thanks a bunch..

            Comment

            Working...