views:

1435

answers:

3

What are the most suitable equivalent C# datatypes for the new "date", "time" and "datetimeoffset" datatypes in Sql Server 2008?

+2  A: 

This MSDN link should tell you:

Mapping CLR Parameter Data

Jay Riggs
+3  A: 

The new types are supported only if you install .NET Framework 3.5 SP1.

  • SqlDbType.Date

  • SqlDbType.Time

  • SqlDbType.DateTime2

  • SqlDbType.DateTimeOffSet

For exhaustive information, see Date and Time Data in SQL Server 2008

Cerebrus
+1  A: 

In C# you could use

splattne
The phrase "most suitable equivalent C# datatypes" makes me think this is what OP might have been looking for.
Dan