Skip to main content

Antoine

Member since Dec 11, 2008

Recent Blog Comments By Antoine

  • Getting Only the Date Part of a Date/Time Stamp in SQL Server

    Posted on Dec 4, 2006 at 6:34 AM

    The UDF contains a small error. I couldn't create it. I had to replace the '-1' with just a '-'. And then I discovered it always results in a datetime with the time set to '01:00:00' So it should be: CREATE FUNCTION DateOnly(@date) RETURNS datetime WITH SCHEMABINDING as return DATEADD(ms, - DATEP... read more »

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel