DateTime.cs
Posted in Text, on September 3, 2010 at 10:00
static void Main(string[] args)
{
DateTime now = DateTime.Now;
DateTime inp = new DateTime(2010, 12, 25);
TimeSpan fark = inp - now;
int wanteddate = 120;
if (fark.Days < wanteddate)
System.Console.WriteLine(\"Aboo kalan gün sayısı istenilen {0} den az sadece {1} gün kalmış\", wanteddate, fark.Days);
System.Console.ReadKey();
}
Share this code
Use the link below to share the code:
http://www.codesend.com/view/923d3dcf99d3d96c6052d906b4046f12/
HTML
<a href="http://www.codesend.com/view/923d3dcf99d3d96c6052d906b4046f12/">DateTime.cs</a>
BBCode
[url=http://www.codesend.com/view/923d3dcf99d3d96c6052d906b4046f12/]DateTime.cs[/url]
© 2010 CodeSend.com - send code quick and easy
Syntax highlighting by Alex Gorbatchev
Syntax highlighting by Alex Gorbatchev
