Skip to primary content
Skip to secondary content

Spearcross

All About Programming, Piece of My Mind, And Anything

Spearcross

Main menu

  • Home
  • About

Daily Archives: June 9, 2013

SQL Query Get Date Only For The Date Part

Posted on June 9, 2013 by silentcross
Reply

Here’s some example to get the date part in sql with datetime data type :

1
DATEADD(dd, 0, DATEDIFF(dd, 0, [yourdate]))

or

1
CONVERT(date, [yourdate])
Posted in Programming | Tagged MS SQL, SQL Query, T-SQL | Leave a reply

Recent Posts

  • Run Deepseek R1 With Ollama + (Open Webui Docker) Easy way
  • Mikrotik Script For auto reconnect PPPOE to get Public IP
  • Change to another Hosting & 2020 Updates
  • DDNS Cloudflare API
  • Change Hosting in 2018

Categories

  • ASP.NET (2)
  • C (1)
  • Event (3)
  • FreeWare (2)
  • IIS (5)
  • Intro (1)
  • Linux (3)
  • News (3)
  • PHP (4)
  • Piece of My Mind (18)
  • Programming (17)
  • Uncategorized (8)
  • Windows (12)

Tags

  • .NET
  • AI
  • Apache2
  • ASP.NET
  • ASP.NET CORE
  • ASUS
  • blog
  • Cloudflare
  • DDNS
  • Deepseek R1
  • Event
  • Hosting
  • IIS
  • IIS 6
  • IndoComtech
  • Linux
  • Mikrotik
  • MS SQL
  • MySQL
  • Netlify
  • ollama
  • open webui
  • OpenWRT
  • PHP
  • PHP5
  • Reseed
  • S46CM
  • Script
  • SQL
  • SQL Query
  • SSL
  • T-SQL
  • TPLINK
  • uBuntu
  • VS2013
  • WDR3600
  • Windows
  • Windows 7
  • Windows 8
  • Windows 8.1
  • Windows Server
  • Windows Server 2003
  • Windows Small Business Server 2008
  • Windows Small Business Server 2011
  • Wordpress

Calendar

June 2013
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930
« Feb   Oct »

Blogroll

  • Cybernations
  • Kaskus
  • Namecheap
  • Support Forum
  • Themes
  • WordPress Blog
  • WordPress Planet

Tags

  • .NET
  • AI
  • Apache2
  • ASP.NET
  • ASP.NET CORE
  • ASUS
  • blog
  • Cloudflare
  • DDNS
  • Deepseek R1
  • Event
  • Hosting
  • IIS
  • IIS 6
  • IndoComtech
  • Linux
  • Mikrotik
  • MS SQL
  • MySQL
  • Netlify
  • ollama
  • open webui
  • OpenWRT
  • PHP
  • PHP5
  • Reseed
  • S46CM
  • Script
  • SQL
  • SQL Query
  • SSL
  • T-SQL
  • TPLINK
  • uBuntu
  • VS2013
  • WDR3600
  • Windows
  • Windows 7
  • Windows 8
  • Windows 8.1
  • Windows Server
  • Windows Server 2003
  • Windows Small Business Server 2008
  • Windows Small Business Server 2011
  • Wordpress
Proudly powered by WordPress