Check this
using System;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
string[] day = {"First","Second","Third","Fourth","Fifth","Sixth","Seventh","Eighth","Ninth","Tenth",
"Eleventh","Tweleveth","Thirteenth","Fourteenth","Fifteenth","Sixteeth","Seventeenth","Eighteenth","Ninteenth","twentyth",
"Twenty First","Twenty Second","Twenty Third","Twenty Fourth","Twenty Fifth","Twenty Sixth","Twenty Seventh","Twenty Eighth","Twenty Ninth","thirtieth","Thirty First"};
DateTime dateValue = DateTime.Now;
string month = String.Format("{0:MMMM}", dateValue);
string year = ConvertNumbertoWords(dateValue.Year);
string inWords = string.Format("{0} {1} {2}", day[dateValue.Day - 1], month, year);
}
public static string ConvertNumbertoWords(int number)
{
if (number == 0)
return "Zero";
if (number < 0)
return "minus " + ConvertNumbertoWords(Math.Abs(number));
string words = "";
if ((number / 1000) > 0)
{
words += ConvertNumbertoWords(number / 1000) + " Thousand ";
number %= 1000;
}
if ((number / 100) > 0)
{
words += ConvertNumbertoWords(number / 100) + " Hundred ";
number %= 100;
}
if (number > 0)
{
if (words != "")
words += "and ";
var unitsMap = new[] { "Zero", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven", "Tweleve", "Thirteen", "Fourteen", "Fifteen", "Sixteen", "Seventeen", "Eighteen", "Ninteen" };
var tensMap = new[] { "Zero", "Ten", "Twenty", "Thirty", "Forty", "Fifty", "Sixty", "Seventy", "Eighty", "Ninety" };
if (number < 20)
words += unitsMap[number];
else
{
words += tensMap[number / 10];
if ((number % 10) > 0)
words += " " + unitsMap[number % 10];
}
}
return words;
}
}
}
Number Conversion used from
Numbers to Words[
^]