I want to today day : i.e. Output would be Tuesday (9th Jun 2020)
this is day expression : system.DateTime.Now.Day.ToString
I want to today day : i.e. Output would be Tuesday (9th Jun 2020)
this is day expression : system.DateTime.Now.Day.ToString
now.DayOfWeek.ToString
(General )
You could also use the datetime string formating, so DateTime.Now.ToString(“dddd”) will output the full name of the day of the week.
Assign Array of string
dateSuffixes={"st","nd","rd","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","st","nd","rd","th","th","th","th","th","th","th","st"}
then use
now.ToString("dddd (d"""+dateSuffixes(Now.Day-1)+""" MMM yyyy)" )
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.