When I was building the online visits booking web application for
El-Fouad GYN Center website I wanted to show the Tomorrow’s Day Name to the visitors.
In order to do that I used the code below…
var today = DateTime.Today;
var tomorrow = today.AddDays(1);
TomorrowNameInArabic = new System.Globalization.CultureInfo("ar-AE").DateTimeFormat.GetDayName(tomorrow.DayOfWeek);
- At first I created a variable for today which equals the date of today.
- Secondly I created a variable for tomorrow which equals the date of today plus one day.
- Now to show the Tomorrow’s Day Name in Arabic I used “System.Globalization.CultureInfo” namespace to show the DayOfWeek name in Arabic language…
Thats it … Hope you all have a good day…! 🙂