Jump to content

Dates/Times


Mutley

Recommended Posts

I'm making a really basic forum.

 

When users post I want it to say "Latest post: (TIME) (DATE)" in say 22:00, then date as DD/MM/YY

 

When I insert it into the database do I want my field to be configured as "DATE" and a field configured as "TIME" or should I use VARCHAR? But I also noticed it doesn't insert it in DD/MM/YY, it does MM/DD/YY or something weird?

 

To insert do I just do time() and date()?

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/45266-datestimes/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.