Hi Team,
i have a transaction item in Queue with TranscationDate-2023-10-11 00:00:00.0 in this format but in the application it takes 11-OCT-2023.
How to convert the date format
Thanks
Likitha
Hi Team,
i have a transaction item in Queue with TranscationDate-2023-10-11 00:00:00.0 in this format but in the application it takes 11-OCT-2023.
How to convert the date format
Thanks
Likitha
inputDate = DateTime.ParseExact(“2023-10-11 00:00:00.0”, “yyyy-MM-dd HH:mm:ss.f”, CultureInfo.InvariantCulture)
outputDate = inputDate.ToString(“dd-MMM-yyyy”, CultureInfo.InvariantCulture)
have you tried with format cell activity
Check out this threads @vinjam_likitha
https://forum.uipath.com/search?q=format%20cell%20%40Gokul001
Regards
You can convert the date format from “2023-10-11 00:00:00.0” to “11-OCT-2023”
convertedDate = DateTime.ParseExact("2023-10-11 00:00:00.0", "yyyy-MM-dd HH:mm:ss.f", CultureInfo.InvariantCulture).ToString("dd-MMM-yyyy").ToUpper()
cheerss…!
DateTime.ParseExact(InputDate,"yyyy-MM-dd HH;mm:ss.f",System.Globalization.CultureInfo.InvariantCulture).ToString("dd-MMM-yyyy")
Assign Activity
To:originalDate
Value:"2023-10-11 00:00:00.0"
To: newDate
Value: DateTime.ParseExact(originalDate, "yyyy-MM-dd HH:mm:ss.f", System.Globalization.CultureInfo.InvariantCulture).ToString("dd-MMM-yyyy").ToUpper()
Hope it helps!!
@vinjam_likitha
inputDateFormat =yyyy-MM-dd HH:mm:ss.0
outputDateFormat= dd-MMM-yyyy
Assign TransactionDate=transactionDate
DateTime.ParseExact(item.SpecificContent("TranscationDate").ToString, inputDateFormat,
System.Globalization.CultureInfo.InvariantCulture).ToString(outputDateFormat)