How to get current day

Hi All , i would like to get the current day i am using this (now.day) but i am getting only 7 but i would like to get 07 . how i can

Hi,

Can you try the following?

now.ToString("dd")

Regards,

thanks for your answer its working . but if i declare as integer its showing 7 in this case if i would like to add 0 in first position how i can do that

Hi,

Hope the following helps you.

intDay = Now.Day
intDay.toString("00")

Regards,

2 Likes

Hi @Damodara_Rao_Punugubati

Below is the solution for your query

Mark as solution and like it :slight_smile:

Happy Automation :raised_hands:

Best Regards
Er Pratik Wavhal :robot::man_technologist:t4: :computer:

1 Like

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