Skip to main content

Dedric Mauriac

Member since Apr 22, 2010

Recent Blog Comments By Dedric Mauriac

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

    Posted on Apr 22, 2010 at 1:43 PM

    For anyone attempting to get the end of the day as well (11:59 PM), just add a fraction to it. Make sure it has 8 nines to get to the max millisecond before midnight. print cast(0.99999999 + floor(cast( getdate() as float )) as datetime) I mainly needed it to use for "date between @start and @end"... 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