timestamp vs date()<

admin

Administrator
Staff member
is there a way of converting timestamped date into D/M/Y format?

Its all very well working in seconds but my maths just isnt good enough to convert it.

I tried using the date() function but that takes it from the users local machine and theres no guarantee that their machine is correct is there?

So is there another way of working out the date without relying on a genius brain to sort it out or relying on a local pc to have it right?

can you tell i'm ultra new at this?you have the right idea, just wrong order.

date("D/M/Y", $timestamp);

although you would think it comes from the user it really doesn't. when you supply a timestamp it creates the date from that instead.
 
Back
Top