HighDots Forums  

Troubles formatting calculated date PHP/MySql

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Troubles formatting calculated date PHP/MySql in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tom
 
Posts: n/a

Default Troubles formatting calculated date PHP/MySql - 12-25-2003 , 10:32 AM






Hi

I have a calculated field - datestamp(insert_time) + minutes (valid_till)
with the sql:

SELECT ...., ....., DATE_ADD(insert_time, INTERVAL valid_till MINUTE) AS
expire_time
etc.

I cannot figure out how to format the expire_time as "H:i" - since the
expire_time field is not a column, DATE_FORMAT(.....) doesn't work.

Also I failed to figure out in PHP too :-)

Any ideas?

Tom



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.