Date and time

I need to get date in the format like Feb 17 2022 how can this be done.

Hi @sanjay_gowda

DateTime.Now.ToString(“MMM dd yyyy”)

image

For your ref use this link for info about various formats

Regards
Gokul

1 Like

Hi @Gokul001 ,

Thank you this worked.

If your query got resolved kindly close this topic by marking it as solution

Happy Automation

Regards
Gokul

Hello @Gokul001 ,

I need a help If the month of the year is Oct, Nov , Dec , Jan , Feb , March, I need to print a num ex 10 for other months of the year I need to print 11 how can I do this .

Thank you,
Sanjay

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