todayme Posted March 15, 2007 Share Posted March 15, 2007 I dont think it is a code problem but maybe a problem on the server anyone had this problem. Below from the left is the day then the month then the year. Notice how it adds 20 infront of the day. 2014-03-07 Link to comment https://forums.phpfreaks.com/topic/42799-date-function-problems/ Share on other sites More sharing options...
artacus Posted March 15, 2007 Share Posted March 15, 2007 LOL. That's the year. Link to comment https://forums.phpfreaks.com/topic/42799-date-function-problems/#findComment-207761 Share on other sites More sharing options...
interpim Posted March 15, 2007 Share Posted March 15, 2007 Hi Art it's a brain convention O.o Link to comment https://forums.phpfreaks.com/topic/42799-date-function-problems/#findComment-207762 Share on other sites More sharing options...
todayme Posted March 15, 2007 Author Share Posted March 15, 2007 HEY DUDE ITS NOT THE YEAR, UNLESS THE YEAR INCROMENTS EVERY DAY.. Link to comment https://forums.phpfreaks.com/topic/42799-date-function-problems/#findComment-207764 Share on other sites More sharing options...
interpim Posted March 15, 2007 Share Posted March 15, 2007 what is the code? Link to comment https://forums.phpfreaks.com/topic/42799-date-function-problems/#findComment-207765 Share on other sites More sharing options...
mmarif4u Posted March 15, 2007 Share Posted March 15, 2007 show the code , we will help u. Link to comment https://forums.phpfreaks.com/topic/42799-date-function-problems/#findComment-207766 Share on other sites More sharing options...
artacus Posted March 15, 2007 Share Posted March 15, 2007 Ok, take off the cap locks and we wont have to break any knee caps. I'd bet my stockpile of cheese and torture devices that it IS the year. You probably have one thing outputting the date in one format and another interpreting that in another format. Link to comment https://forums.phpfreaks.com/topic/42799-date-function-problems/#findComment-207785 Share on other sites More sharing options...
todayme Posted March 15, 2007 Author Share Posted March 15, 2007 Wrong, the information in the database is the same that is outputed. Date(d.m.y) I figure its a server configuration issue. Just so you know it is a problem, I am no f.. wit. Link to comment https://forums.phpfreaks.com/topic/42799-date-function-problems/#findComment-207825 Share on other sites More sharing options...
sasa Posted March 15, 2007 Share Posted March 15, 2007 date('20d-m-y'); Link to comment https://forums.phpfreaks.com/topic/42799-date-function-problems/#findComment-207836 Share on other sites More sharing options...
benjaminbeazy Posted March 15, 2007 Share Posted March 15, 2007 date('20d-m-y'); i was able to reproduce the problem using your code Link to comment https://forums.phpfreaks.com/topic/42799-date-function-problems/#findComment-207841 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.