Geekpedia Programming Tutorials






Code C# Code

1 2 3 4 5 6 7 8
(37 code snippets in 8 pages)
Latest Code: RSS Feed RSS Feed     KlipFolio Klip Klip     Add to Google    Add to My Yahoo!    Subscribe in NewsGator Online    Add To Windows Live    Subscribe with Bloglines   
Code

*****
5 from 4 votes

Jan 9th 2008
by Andrew Pociu

Get the week number of a given date

The C# method uses the DateTime object to get the week number of a given date. The number returned is dependent on the culture of the target machine.

Code

-----
No votes

Jan 6th 2008
by Andrew Pociu

Find Easter Sunday of any year

The Meeus/Jones/Butcher Gregorian algorithm is used for calculating the Easter Sunday of any given year using C#.

Code

***--
2.5 from 2 votes

Dec 16th 2007
by Andrew Pociu

Capitalize each word in a string

The CapitalizeString method uses regular expressions to capitalize every word in a string.

Code

*****
5 from 3 votes

Nov 15th 2007
by Andrew Pociu

Convert ASCII values from hex to characters

This C# code takes in a list of ASCII values (hexadecimal) and shows the actual characters behind, thus converting hex values to strings.

Code

*****
5 from 3 votes

Nov 14th 2007
by Andrew Pociu

Get a list of installed printers

Using a foreach loop in C# to retrieve a list of all installed printers (available or unavailable.)

1 2 3 4 5 6 7 8
(37 code snippets in 8 pages)
Filter Results
Show:


Latest IT Jobs


Other Resources
Latest Tech Bargains

Advertisement

Free Magazine Subscriptions

Today's Pictures

Today's Video

Other Resources

Latest Download

Latest Icons