Tech Tutorials Database
GeekArticles Microsoft C#

C# DateTime Structure

Category: C#
Comments (0)

By S.Thangaraju Here is an example of how the DateTime Structure works for C#. It's extremely basic and very easy to follow. /* This program finds out your Age using the DateTime structure in C#. */ using System; class DOB{ private DateTime dtDob; private DateTime dtNow; private DateTime dtAge; private int intDay; private int intMonth; private int intYear; private int intHour; private int intMinute; private TimeSpan tsAge; private int intAgeYear; private int intAgeMonths; private int...n


Sponsored Links

Read Next: Structures In C#