View Full Version : Convert 23/01/2012 to 20120123
01-23-2012, 05:57 PM
Is it possible to change the date format from 23/01/2012 to 20120123??
01-23-2012, 06:03 PM
01-23-2012, 06:13 PM
Exactly what I was just about to post :D
01-23-2012, 08:49 PM
Wow, got a bad rep point for having a personality, and agreeing with someone.
01-23-2012, 08:52 PM
what is a rep point?
01-23-2012, 09:01 PM
Reputation point. Under your name where you have all the green boxes - that's your reputation (kudos btw :thumbsup:). You can see the latest ones on your 'User CP'. You can give neutral, positive or negative points. You give them by clicking the wee medal, next to 'Report post'
01-23-2012, 10:07 PM
I guess I never knew what that meant ... what good is it ...
Doesn't look like we can cash it in for anything.
01-23-2012, 11:13 PM
Rep is a builtin feature of the vB3+, and I believe thanks is an extension. They are pretty much the same thing really, except there is no 'chastise user for this post' option :D
Also, another way to do this using 5.3+ uses the datetime:
$sDate = '23/01/2012';
$dt = DateTime::createFromFormat('d/m/Y', $sDate);
The pro with this is since its an actual datetime type, it is locale aware so you can add a timezone to correct the date if desired.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.