How to get date from date

How can I get date 25 from 25/01/2023

I want only 25

Can Some one help me with function/expression

@AbhishekC1725 Hi,

please try the below function:

@DateTime.FormatDateTime(@DateTime.CurrentDateTime(),“dd”,“”,“”)

you can provide the timezone and locale as well so you will get perfect result. You can use any datetime property instead of currentdatetime as well

@AbhishekC1725 You can use FormatDateTime. Please see a screenshot. TimeZone and Locale param I passed null. You can provide values based on your requirements.

@SrinidhiM Thanks

@I_amFrk05 Thanks