Skip to content

Instantly share code, notes, and snippets.

@CH3COOH
Created February 19, 2015 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CH3COOH/dd8e47173edb572faf18 to your computer and use it in GitHub Desktop.
Save CH3COOH/dd8e47173edb572faf18 to your computer and use it in GitHub Desktop.
田村ゆかりさんの誕生日
// 田村ゆかりさんの誕生日
var yukariBirthday = new DateTime(1976, 2, 27);
// 現在の年月日
var nowDate = DateTime.Now.Date;
// 経過日数を調べる
var totalDays = nowDate.Subtract(yukariBirthday).TotalDays;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment