SoFunction
Updated on 2025-04-06

How to display message time in C# form

namespace test
{
    class Program
    {
        static void Main(string[] args)
        {
            DateTime now = ;
            DateTime time = ( "2014-03-17 11:02:00");
            TimeSpan ts = now - time;
            if ( == )
            {
                if ( < 1 && == )
                {
                    if ( < 1)
                    {
                        if ( < 1)
                        {
string s=() + "If you love me a second ago, don't leave a message to you";
                            (s);
                            ();
                            return;
                        }
string a = () + "If you love me minutes ago, don't leave a message to you";
                         (a);
                         ();
                         return;
                    }
string b = "Today " + ("HH:mm") + "Love me and leave a message to you";
                    (b);
                    ();
                    return;
                }
(()+"month" + () +"day"+ ("#00")+"hour" + ("#00")+"minute ago"+"He who loves you left you a message");
            }
            ();
        }
    }
}