getdate() is a built-in sql server function. It returns the current database system timestamp as a datetime value without the database time zone offset. See
http://msdn.microsoft.com/en-us/library/ms188383.aspx for more details. To get date part:
Code:select CONVERT (date, GETDATE())
However, sql server compact edition doesn’t support date. You can use the following methods to get date part of the datetime:
Quote:select CONVERT(nvarchar(10), getdate(), 103)
Quote:
CONVERT(datetime, CONVERT(nvarchar(10), getdate(), 103), 103)
whereby 103 is for Australian date format ("DD/MM/YYYY").