mssql convert sintax

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
elpepefontana
Forum Newbie
Posts: 5
Joined: Thu Mar 12, 2009 6:34 am

mssql convert sintax

Post by elpepefontana »

I got these convert sintax:
the date comes from a previous query(another mssql db).

convert(datetime,'25-2-2009 0:00am',0)

where is the error, can it be the date's format? is there a simple way to correct it?

the error is:

Warning: mssql_query() [function.mssql-query]: message: Line 5: Incorrect syntax near '25'. (severity 15)
Post Reply