Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
Ben Nadel at the jQuery Conference 2010 (Boston, MA) with: Stephen Tang
Ben Nadel at the jQuery Conference 2010 (Boston, MA) with: Stephen Tang

Yuval Sadan

Member since Dec 11, 2008

Recent Blog Comments By Yuval Sadan

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

    Posted on Jul 3, 2008 at 2:48 AM

    You can also cast to binary, and rely (which is what you do when using float, only there you do it implicitly) on SQL Server's spec that defines it that datetime stores the date in the first 4 bytes and time in the last 4. Casting to binary(4) truncates the higher bytes (date) so we get the time onl... read more »