Date with C#

Dates and times are very important in software development.  C# has built-in methods for manipulating dates and time and we will discuss those with the help of this example. using System; namespace DatesAndTimes { class Program { static void Main(string[] args) { DateTime myValue = DateTime.Now; Console.WriteLine(myValue.ToString()); Console.WriteLine(myValue.ToShortDateString()); Console.WriteLine(myValue.ToShortTimeString()); Console.WriteLine(myValue.ToLongDateString()); Console.WriteLine(myValue.ToLongTimeString()); Console.WriteLine(myValue.AddDays(3).ToLongDateString()); Console.WriteLine(myValue.AddHours(3).ToLongTimeString()); Console.WriteLine(myValue.AddDays(-3).ToLongDateString()); Console.WriteLine(myValue.Month); DateTime […]

Read More

Start with C#

C# or C sharp is a language which was introduced in 2000 by Microsoft. It has resemblance with both c++ and java and however it requires .NET framework to run. I used Visual Studio for writing my first C sharp program. You can easily download visual studio community edition from this link visual studio and go through the installation instruction there. The program is to print Hello World in windows console. At first, I have to create a project in visual studio for the console application. Then I wrote the bunch of line of codes there. using System; namespace HelloWorld {     class Program {         static void Main(string[] args) {             Console.WriteLine(“Hello World”);             Console.ReadLine();         }     } } This chunk of code will print Hello World in the console as given in the image below. The first line of code is ‘using System’ that […]

Read More

First International Client

We as PNAJ Innovations Inc. launched a website for the first the international client from ‪Australia‬. Melton West Security Doors and Screens is the client who has launched http://www.mwdoors.com.au website. The most important part is the website created using WIX because we also have experts for WIX Service. Share your views below in a comment or write us on our email […]

Read More