Click here to Skip to main content
15,892,965 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi...My date is stored in a database but i want to fetch this date into word format...
suppose my date "2000-02-21" is stored into database but i want to display this date into textbox in word format like "Two February TwoThousands"....
Thank u....
Posted

There are lot of examples how to convert numbers to text. Have a look at these:
- http://stackoverflow.com/questions/2729752/converting-numbers-in-to-words-c-sharp[^]
- How to Convert a Numeric Value or Currency to English Words Using C#[^]

The only exception you have to make is with the month. For the month you can use
C#
ToString("MMMM")

For more information see Custom Date and Time Format Strings[^]
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900