• Skip to primary navigation
  • Skip to content
  • Skip to footer
Chris Miller's 5th Blog
  • Posts
  • Categories
  • Tags
  • About
    Chris Miller

    Chris Miller

    I am a Microsoft MVP, a Pluralsight Author, a Xamarin Certified Mobile Developer for iOS and Android, and the leader of the Tech Valley .NET User Group.

    • Albany, NY
    • Website
    • BlueSky
    • Pluralsight
    • GitHub
    • LinkedIn
    • Instagram
    • Microsoft MVP
    • Stack Overflow
    • Reddit
    • Links
      • BlueSky
      • Pluralsight
      • GitHub

    Get just the date from a SQL Server datetime column

    less than 1 minute read

    This should be faster than the other way ( converting it to a varchar and lopping off the time part).

    SELECT DATEADD(dd, 0, DATEDIFF(dd, 0, GETDATE()))

    Courtesy of [Greg’s Cool [Insert Clever Name] of the Day]

    Updated: February 17, 2006

    Twitter Facebook LinkedIn
    Previous Next

    Comments

    You May Also Enjoy

    Using PowerShell to convert VTT to SRT

    5 minute read

    Converting between VTT and SRT So I have to convert between VTT and SRT a few times a year. I’m lazy and forgetful so I decided to script the tasks with Powe...

    Command for keeping your phone awake while plugged in

    2 minute read

    Usually when I’m writing .NET MAUI code for Android, I use an emulator to test the code. It’s fast and there are fewer things that can go wrong. And most o...

    Breaking and then fixing my app’s CFBundleShortVersionString

    4 minute read

    So I had this bug reported where the app was reporting the wrong version number. Only for iOS, it was correct on Android. It’s an app created with .NET MAU...

    Poka-yoke

    2 minute read

    So I used poka-yoke (ポカヨケ) in a conversation yesterday. I am working on an update to an app that uses a web service. Under an extreme edge condition, the a...

    • Bluesky
    • GitHub
    • LinkedIn
    • Instagram
    • Microsoft MVP
    • Feed
    © 2025 Chris Miller's 5th Blog. Powered by Jekyll & Minimal Mistakes.