Hi Everyone,
Today is 10/16/2023. How do i extract the month number: 10 from the Modify Date activity as shown for custom format as shown?

supriya117
(Supriya Allada)
2
Hi @josiahgoh276
Try this:
dateTime.Today.Month.ToString

Gokul001
(Gokul Balaji)
3
Hi @josiahgoh276
Try with this expression
CDate(ModifyDateVariable).ToString("MM")
Gokul001
(Gokul Balaji)
4
Some thing like this in the image @josiahgoh276

Hello @josiahgoh276
Try this syntax instead of Activity
DateTime.Now.month -----------> Output= 10
DateTime.Now.Day -------------> Output = 16
DateTime.Now.Year -------------> Output= 2023

Hi, i don’t seem to be able to replicate this. I tried it:
and obtain the following error:

lrtetala
(Lakshman Reddy)
8
@josiahgoh276
Please check what i am suggest
lrtetala
(Lakshman Reddy)
9
@josiahgoh276
even that is also working
Hi Praveen, it doesn’t work for me
Result:

Gokul001
(Gokul Balaji)
12
Just try like this @josiahgoh276
Hi Gokul,
I need this month number to be in a string variable. Can you help with that?
lrtetala
(Lakshman Reddy)
16
@josiahgoh276
Can you show your variables panel
Gokul001
(Gokul Balaji)
17
Hi @josiahgoh276
Have you tried to uninsatll the studio and give a try
Hi @josiahgoh276 ,
Can you please remove activities and create again.
Thanks,
Sandhiya P
i am using studiox so there is no variables panel, only data manager:
lrtetala
(Lakshman Reddy)
20
@josiahgoh276
Once try to Reinstall UiPath StudioX