Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dateTime / smallDateTime 1

Status
Not open for further replies.

CatPlus

Technical User
Jan 30, 2003
236
Hello all:

Please help me understand the following:

[1] Although BOL references 4/18/2003 11:17:42.1234 AM as a valid date, a dateTime column will only accept HH:MM:SS. Why then is a reference of milliseconds, or is it inserted when SQL updates these values via a stored procedure

[2] How can January through September be represented as 04/18/2003 instead of 4/18/2003? This is cosmetically desired when column displays single and double digit months

[3] What is the syntax to derive a column formula to default to current date and will it return 4/19/2003 or 4/19/2003 11:17:42.1234?

[4] Is there a way to define a data-type which will only record the date and not the time.... and still be useable in defining variables in stored procedures?

Thanks indeed
Mickey
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top