How to get current date?

Hello,

I’m using Activities.TypeInfo.
And I would like to enter the current date.
Is there such a way?

image01

Use this to get the current date in that particular format:

DateTime.Now.ToString("yyyy/MM/dd")

Thanks,
Rammohan B.

4 Likes

I want to rename my excel file with name of current date and above format is not working there and i am not able to get another option.
any leads will be appreciated.

Hey @Himani_Singh

“/” is not supported with filename in windows.

This below thread link will help you on this:

Let me know …!! if you are still facing any prob :slight_smile:

Regards…!!
Aksh

2 Likes

thank you Aksh for your time. I resolved my prob on that day only.:blush:

if I want only month and year
then will it be data.now.ToString(“mm.yyyy”) or
Now.ToString(“mm.yyyy”)