Skip to main content

bbn911

Member since Jul 16, 2009

Recent Blog Comments By bbn911

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

    Posted on Jul 16, 2009 at 5:08 PM

    here is another option - should be faster... ALTER FUNCTION [dbo].[GetDateOnly] ( @DateToFix DateTime ) RETURNS DateTime AS BEGIN DECLARE @dateMask bigint DECLARE @timeMask bigint SET @dateMask = 0xffffffffff000000 SET @timeMask = 0x0000000000ffffff Return CAST(CAST((CAST(@DateToFix as binary... 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