By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 1,438 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

Changing a date in a script

P: 19
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.
Oct 8 '11 #1
Share this Question
Share on Google+
5 Replies

Expert Mod 5K+
P: 8,639
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.
Oct 9 '11 #2

P: 19
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.
Oct 10 '11 #3

Expert Mod 5K+
P: 8,639
echo ("07" + 2004); ??
Oct 10 '11 #4

P: 19
I will try that. Thanks for your time. Still abit wet behind the ears.
Oct 11 '11 #5

P: 19
Works perfectly... Thanks a bunch..
Oct 12 '11 #6

Post your reply

Sign in to post your reply or Sign up for a free account.