Jump to content

datetime data type

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
giuliel

giuliel

    Learning Programmer

  • Members
  • PipPipPip
  • 60 posts
I'm creating a table and would like to include a date field. However the only option I can find available is the datetime data type which requires me to enter a time as well. All I would like to enter is the date in which an employee was hired. If I don't enter a time is defaults to 12:00:00pm. Is there a data type specifically just for 'date' rather than datetime?
If at first you don't succeed, skydiving is not for you.

#2
Guest_Jordan_*

Guest_Jordan_*
  • Guests
Which database are you using?

#3
giuliel

giuliel

    Learning Programmer

  • Members
  • PipPipPip
  • 60 posts
Microsoft SQL Server 2000
If at first you don't succeed, skydiving is not for you.

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
If you use 12:00:00 AM, it will ignore the time when returning values.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog