//DateTime -> string


DateTime _date = DateTime.Parse(StringDate);


////////////////////////////////////////////////////////////


//string -> DateTime


string _convertedDate = _date .ToString("yyyy/MM/dd hh:mm:ss");

'프로그래밍 > C#' 카테고리의 다른 글

C# 현재 호출되는 메소드명/함수명 가져오는법  (0) 2018.11.20
코루틴 트리거 팁  (0) 2018.11.16
return default(T);란?  (0) 2018.08.02
C# string 사용법  (0) 2018.06.27
C# const, readonly 차이  (0) 2018.06.04

+ Recent posts