I need to get only date from the whole date
If date is 09/12/2022 then bot should take 9.
If date is 12/12/2022 then bot should take 12.
I tried to format it but its giving with zero
Now.ToString(“d”) and this is not working.
Is there a way to get this date?
How about this expression?
Can you try the following?
You can either use Modify Date activity as below or the expression provided below.
DateTime.ParseExact(strVar, "MM/dd/yyyy", Globalization.CultureInfo.InvariantCulture).ToString("dd")
Your Expression is Good, Just Add space before “d”
date retrieval was mentioned. Is it tried from a string or DateTime.
Unfortunately, your culture / local info is not shared. e.g. European 09/12 could be the 9th December
What was done, and what is the exact not working
have a look on a few samples
with a visual surprise of:
Handled as mentioned above:
@Anil_G thanks, it’s working
@Gokul001 its working too.
Thanks for the reply
@Gokul_Jayakumar yes, with space it worked.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.