It is always a basic statament for all oracle developer to get current date
Select sysdate into a variable from Dual ;
But let us know how to do the same in C# VS2010
Below is the simple command to get current time and to display in Console
Select sysdate into a variable from Dual ;
But let us know how to do the same in C# VS2010
Below is the simple command to get current time and to display in Console
{
Console.WriteLine(DateTime.Now.ToLongTimeString().ToString());
Console.WriteLine(DateTime.Now.ToShortTimeString().ToString());
Console.ReadLine();
}
Below is the output for above code:
No comments:
Post a Comment