I have a datetime in a database. How can i extract only the time in hours and minutes from the datetime. And also same for date only Thanks