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.