I want to have date and time columns in my database. I chose DATE
type for date but to only get time which type should I give and while writing a record for it in which format should I write?
Edit: I am using SQL Server.
I want to have date and time columns in my database. I chose DATE
type for date but to only get time which type should I give and while writing a record for it in which format should I write?
Edit: I am using SQL Server.
Try DateTime
, contains both a date and time component.
http://msdn.microsoft.com/en-us/library/ms187819.aspx
EDIT: Now that you say you're using Oracle, it does have time support in the Date value it seems, though I'm not an oracle expert. I found this if it helps: http://infolab.stanford.edu/~ullman/fcdb/oracle/or-time.html