|
|
Joined: Jun 2001
Posts: 19
Junior Member
|
Junior Member
Joined: Jun 2001
Posts: 19 |
I've written a guestbook program wich also writes the time and the date in a textfile. But for some reason the program takes 101 as the year instead of 2001 or 01. How can I solve this?
|
|
|
|
Joined: Aug 2000
Posts: 335
Member
|
Member
Joined: Aug 2000
Posts: 335 |
How exactly are you obtaining the date and writing it to the file? If you're doing it like this, then $year is the number of years since 1900, and $mon is in the range 0..11: [ June 13, 2001 05:37 AM: Message edited by: Dave_L ]
|
|
|
|
Joined: Jun 2001
Posts: 19
Junior Member
|
Junior Member
Joined: Jun 2001
Posts: 19 |
I use this: So, does somebody have a suggestion?
|
|
|
|
Joined: Aug 2000
Posts: 335
Member
|
Member
Joined: Aug 2000
Posts: 335 |
$RealYear = 1900 + $Year;
|
|
|
|
Joined: Jun 2001
Posts: 19
Junior Member
|
Junior Member
Joined: Jun 2001
Posts: 19 |
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 5,834
Joined: January 2000
|
|
Forums63
Topics37,575
Posts293,931
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|