browse by category or date

I was scouring my projects folder for old projects that need to be changed when I found this:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            var dtMarriage = new DateTime(2010, 6, 19);
            var dtNow = DateTime.Now.Date;
            var ts = new TimeSpan(dtNow.Ticks - dtMarriage.Ticks);
            Console.Write(ts.Days);
            Console.ReadLine();
        }
    }
}

Haha.. I wonder why did I wrote a program to count how many days I’ve been married 😀

GD Star Rating
loading...
Silly Program I Wrote #1, 4.0 out of 5 based on 2 ratings

Possibly relevant:

About Hardono

Howdy! I'm Hardono. I am working as a Software Developer. I am working mostly in Windows, dealing with .NET, conversing in C#. But I know a bit of Linux, mainly because I need to keep this blog operational. I've been working in Logistics/Transport industry for more than 11 years.

Incoming Search

.net, c#, humor

No Comment

Add Your Comment