@supu123 Still it doesn’t Work ? If So, Can you show me what you have assigned for strTestDate?
@supu123 Can you show me What have you used in the Assign for strTestDate?
@supu123 you’re using a Colon : at the end of the Format
@supu123 Use this :
StartProcess.xaml (66.7 KB)
Hi,
I got the solution
But I have a query
If the month changes from single digit to double the code will not effect ?
Regards,
Supriya
Thank you so much for ur help
@supu123 Ohh wait i guess it will
@supermanPunch
No it is not afffecting I have tested it
Regards,
Supriya
@supu123 I did not get any format which can be converted from string “2/13/20 22:35:42:846” to DateTime beacuse of the Colon : After 42 if it was a dot " . ", we could have Converted it
Now the Option is to Replace the last Colon by a Dot and convert it into DateTime, But i don’t really knowif that’s what you need
@supu123 Also I don’t think the Replace and Substring works for Month being a Double Digit as well as Day being a Single Digit
I’ll try to make a workaround
Hii,
By replacing: by . also it is not working i will consider till seconds only
How to convert this Datetime t o minutes
Regards,
Supriya
@supu123 Ok If you want till Seconds , I will give you the xaml File , Some modifications need to be done for Previous Substring function
Remove the brackets and ‘GMT+5:30’ part from the string. Then use the below code
Datetime.ParseExact(strTime,"M/d/yy hh:mm:ss:fff", System.Globalization.CultureInfo.InvariantCulture)
@supu123 ok Check this, This Should work for all the Dates, if it’s a single digit or double digit month, Single Digit Day or Double Digit Day but only upto Seconds
StartProcess.xaml (67.2 KB)
@supu123 I Still have one Question will the Number of digits in MilliSeconds vary