Date picker using Inject js activity

Hii,

I am facing a problem in getting date from date picker.

I am getting date like

the code i have written is
(upload://prWbdIPpszaGFxXDjV8nvdZS51F.png)
Screenshot (21)

Can you help me to get date in correct format…

Thanks in advance.

Hi @Usha_Sree
what error you are getting ?

the date is getting like 02/02/2021 00:00:00
I need like this 02/01/2021

Hi @Usha_Sree

while passing the inconfig parameter for date , pass like this

CDate(In_Config(“SBI_Fromdate”).ToString.Trim).ToString(“dd/MM/yyyy”)

Thanks and Regards,

Nived N

Ok I’ll check

It’s working.
Thank you @NIVED_NAMBIAR

1 Like

You are welcome

hii,
iam getting date like 01/11/2022 instead of 11/01/2022.
month and day are interchanged

try this
@Usha_Sree

CDate(In_Config(“SBI_Fromdate”).ToString.Trim).ToString(“MM/dd/yyyy”)

1 Like

Thank You

1 Like

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