첨부 소스 코드는 나눔고딕코딩 폰트를 사용합니다.
728x90
반응형
728x170
using System;
using System.Globalization;
using System.Threading;

CultureInfo cultureInfo = CultureInfo.CurrentCulture.Clone() as CultureInfo;
 
cultureInfo.DateTimeFormat.LongDatePattern  = "yyyy-MM-dd";
cultureInfo.DateTimeFormat.LongTimePattern  = "HH:mm:ss";
cultureInfo.DateTimeFormat.ShortDatePattern = "yyyy-MM-dd";
cultureInfo.DateTimeFormat.ShortTimePattern = "HH:mm:ss";
 
Thread.CurrentThread.CurrentCulture   = cultureInfo;
Thread.CurrentThread.CurrentUICulture = cultureInfo;
 
Console.WriteLine(DateTime.Now.ToString());
728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요