Basics

You have many methods to leverage from objects in the .NET Framework.

TYPE THIS:

using System;

public class ApplyNETFramework {

public static void Main() {

Console.WriteLine(System.DateTime.Now.ToLongTimeString()); }

RESULT:

output would be: 10:12:12 PM

—O Read the input from the console.

I Call the GetFormattedDate function with the user input and put into the variable for the current date.

—, Write the message about the current date to the console.

—O Read the input from the console.

I Call the GetFormattedDate function with the user input and put into the variable for the current date.

—, Write the message about the current date to the console.

CONTINUED

Was this article helpful?

0 0

Post a comment