December 9th, 2012, 10:15 PM
TIME in php
i need help..in doing a project scheduling system.. i use this format M 0700-0900 how can i compare this to the current time save on my database? how can i convert this time to hour:minutes:seconds???? please help me
December 9th, 2012, 11:53 PM
Since you haven't really explained your problem or in fact given us anything useful to help you with, I'll say:
HHMM is date("Hi") in PHP and DATE_FORMAT(NOW(), "%H%i") in MySQL.
December 10th, 2012, 07:28 PM
actually i need an example to check if two time is conflict with each other.. for example my start time is 7:30 and end time is 10:30... then the next item will be 10:00 - 12:00 so i must be conflict ..because of the end time of 10:30 and the start time of 10:00