Stripping Times from Dates

https://www.stevefenton.co.uk/2021/08/stripping-times-from-dates-in-c/

์ข‹์•„์š” 2

๊ธฐ์กด์—๋Š” DateTime์—์„œ ์‹œ๊ฐ„๊ฐ’์„ ์ œ๊ฑฐํ•œ Date๋ถ€๋ถ„์„ ์–ป์œผ๋ ค๋ฉด DateTime์˜ Date ์†์„ฑ์„ ์‚ฌ์šฉํ–ˆ์–ด์•ผ ํ–ˆ๋Š”๋ฐ ์ด์ œ .NET 6๋ถ€ํ„ฐ๋Š” DateOnly๋ผ๋Š” ์ •์  ํด๋ž˜์Šค์˜ FromDateTime์ด๋ผ๋Š” ์ •์ ๋ฉ”์„œ๋“œ์— DateTime์„ ์ธ์ž๋กœ ๋„˜๊ธฐ๋ฉด ์‹œ๊ฐ„๊ฐ’์ด๋‚˜ ๋‚ ์งœ๊ฐ’๋งŒ ํ•„ํ„ฐ๋ง์„ ํ•  ์ˆ˜ ์žˆ๋‹ค๋Š” ๋‚ด์šฉ์ด๊ตฐ์š”.

๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.

์ข‹์•„์š” 2