converting DateSerial function from access to sql server

S

Sam

DateSerial function is not recognized by sql server
how can i convert the following function

DateSerial(Year(Date()),Month(Date()),1)

from access to sql server?

thanks
 
R

Ron Hinds

Sam said:
DateSerial function is not recognized by sql server
how can i convert the following function

DateSerial(Year(Date()),Month(Date()),1)

from access to sql server?

thanks

Why exactly are you doing this? SQL Server does implicit conversion of
strings that it recognizes to a datetime value:

'12-01-2004'
'2004-12-01'
'December 1, 2004'

etc.

If we knew how/why you were using it, we could possibly provide an answer...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top