how can i get only the time from the datetime variable?
i am storing the datetime in the database. If i only need to fetch the time, how can I do it?
I have to run a single query in which I want to fetch the date and time from the datetime column. i need to use the date and time in different fields.
or use the date_format() function:
http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_date-format