Date conversion as per day

I want to today day : i.e. Output would be Tuesday (9th Jun 2020)

this is day expression : system.DateTime.Now.Day.ToString

1 Like

now.DayOfWeek.ToString
(General )

@Raj_Nadar

2 Likes

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)" )

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.