php forum
php mysql forum
php mysql smarty
 
Topic Options
#216542 - 05/08/02 04:50 PM U_Registered Field
hougie Offline
Lurker

Registered: 03/25/02
Posts: 3
How can I format that date when running a query in phpmyadmin so that I can read it. What is it julian date?<br /><br />Any help is appreciated.

Top
#216543 - 05/08/02 05:09 PM Re: U_Registered Field [Re: motest]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
Here's an example (which I happened to have in my notes). It displays users who registered within the last seven days. <br /> <br /><pre><font class="small">code:</font><hr>SELECT U_Username,FROM_UNIXTIME(U_Registered),(UNIX_TIMESTAMP()-U_Registered)/(3600*24) <br />FROM w3t_Users <br />WHERE (UNIX_TIMESTAMP()-U_Registered)/(3600*24) < 7</pre><hr> <br /> <br />The date/times in the database represent the number of seconds from the "epoch", which I think is Jan 1, 1970. <br /> <br />For more details, see MySQL Date and Time Functions.
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top


Who's Online
0 registered (), 29 Guests and 9 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Wisdom needed
by Gizmo
Yesterday at 10:54 AM
How to hide sub forums from summary page
by blaaskaak
12/03/08 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
Truth, David DelMonte, nick1, Begbie, cenk
13364 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks