Convert bigint830)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Arsench2000
Forum Commoner
Posts: 38
Joined: Sat Sep 15, 2007 8:18 pm

Convert bigint830)

Post by Arsench2000 »

Hello, I have a data field for date and time and it is a bigint(30), now I want to display date.
How can I convert bigint into date?

thank you
User avatar
chopsmith
Forum Commoner
Posts: 56
Joined: Thu Nov 13, 2008 10:40 am
Location: Red Bank, NJ, USA

Re: Convert bigint830)

Post by chopsmith »

How did you get the bigint value in there? Is it a unix timestamp or something? If that's the case, look at these pages in the manual:

1. http://us3.php.net/manual/en/function.getdate.php
2. http://us3.php.net/date

Either one will do the trick.
Post Reply