Archive for ‘DotNet’

C# String Tips and Tricks

C# String Tips and Tricks

This article provides Tips and Tricks for using string in C#.Net. 1. Passing Double Quotes (“) in C# String Most of the applications are required to pass a string with double quotes to the sqlparameter to execute a stored procedure. Output 2. C# string reverse Unfortunately Reverse() function is not available in C#...

Full Post

C# Program to convert a given Number into Words

C# Program to convert a given Number into Words

In most of the application it is required to convert the number or amount in words. Following code will help you to convert a given number into words. For example, if “1234″ is given as input, output would be “One Thousand Two Hundred Thirty Four”. This code will be convert any number between 1...

Full Post

Working with Date and Time in C#.Net

Working with Date and Time in C#.Net

C#.Net provides DateTime structure that offers many useful methods and properties for date and time calculations. The range of DateTime is between 01/01/0001 12:00:00 AM to 31/12/9999 11:59:59 PM. DateTime return various date/time elements: DateTime d1 = DateTime.Now; listBox1.Items.Add("Year\t\t: " + d1.Year); listBox1.Items.Add("Month\t\t: " + d1.Month); listBox1.Items.Add("Day\t\t: " + d1.Day); listBox1.Items.Add("DayOfWeek\t: " +...

Full Post

Copyright © 2017 TechZoo - Technology Blog. All rights reserved.
Proudly powered by WordPress. Developed by 7Tech Solutions