So i have a program that asks for your birth data and i want to replace the number of the month to its matching name. For ex. if someone writes 1989.11.10 then the result would be 1989. november 10. My code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
namespace hf
{
class Program
{
static void Main(string[] args)
{
Console.Write("Bith data: ");
string adat = Console.ReadLine();
string szido = Regex.Replace(adat, "[^0-9.]", "");
Console.WriteLine("Birthday: {0}", szido);
string[] szidotomb = new string[3];
szidotomb = szido.Split('.');
for (int i = 0; i < 3; i++)
Console.WriteLine(szidotomb[i]);
Console.ReadKey();
}
}
}