How to print all dates of the current month

I want to print all dates of the current month which is august in the format

08/01/2022
08/02/2022
.
.
.
.
08/31/2022

how to do this

HI,

Can you try the following sample?

aarrStr = Enumerable.Range(1,DateTime.DaysInMonth(Now.Year,Now.Month)).Select(Function(i) New DateTime(Now.Year,Now.Month,i).ToString("MM/dd/yyyy")).ToArray()

Then

String.Join(vbCrLf,arrStr)

Sequence.xaml (5.0 KB)

Regards,

This is like One Single String

What My Requirement is I want to date store 1st date into variable print it, then again 2nd date store in variable print it, then again 3rd date in variable print and so on till I Reach the 31st

Hi,

How about the following?

Sequence.xaml (6.0 KB)

Regards,

This Worked Perfect Thanks

1 Like

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