Need to separate day from date

Need to seperate day from date

For example: 11/01/2022

I need to get the output as 1 not as 01

Hi @sruthesanju

Date.parseexact(“11/01/2022”,”MM/dd/yyyy”,system.globalization.culturalinfo.invariantculture).Tostring(“d”)

Plese use this

Or cdate(date).day alao would give it

Cheers

grafik

Hi @sruthesanju ,

If the format is the same always, we could try with String Split operation as shown below if the input is a String.

Cint(Split("11/01/2022","/")(1))

Hi @sruthesanju

Try with this expression

DateTime.ParseExact(StringInput.ToString,"dd/MM/yyyy",System.Globalization.CultureInfo.InvariantCulture).ToString("d")

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