Getting Time Stamp in Date

Change the DateTime Variable to String in the Vriable panel

Str_date = DateTime.ParseExact(Inputstring,"dd/MM/yyyy",System.GLobalization.CultureInfo.Invariant culture).ToString("MM/dd/yyyy")

@marina.dutta

Change the argument datatype to string

Cheers

Hi @marina.dutta

If your variable is of DataType System.DateTime you will get the timestamp in the output. You can’t remove that timestamp. You can remove that only if the variable will be of DataType System.String and you give the desired datetime format.

Regards

Hi @marina.dutta ,

If your variable is DateTime variable and you need date alone from that means,

Create another variable of type DateOnly .

Output = System.DateOnly.FromDateTime(DateTimevalue)

image.

Please let me know if you face any issue.

Thanks,
Sandhiya P

Thanks everyone. @lrtetala @Parvathy @Shiva_Nikhil @supriya117 @supermanPunch @Gokul001

This one works .

datetime.parseExact(strdate,“dd/MM/yyyy”,system.globalization.cultureinfo.invariantCulture).tostring(“dd/MM/yyyy”)

2 Likes

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