I want to put current date "without weekday"

Hello, I am using “datetime.now.ToLongDateString” command to show current date & Message box showing “Tuesday, 3rd August 2021”. How can I remove “Tuesday” from this output & rest will remain same.
Please share your valuables suggestions. Thanks in advance.

Hi @Sojol_Hamid ,

Try to convert it to date only.

datetime.now.ToString(“dd MMM yyyy”)

You can pass any format.

1 Like

Hi @Sojol_Hamid

you can try with.

Now.ToString("dd MMM yyyy")


1 Like

Excellent. it works. but is it possible to write in “3rd August” instead of “03 August”? 3rd 4th 5th instead of plain numbers.

Not sure on this.

one of many options:

1 Like

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