Correction in date value

Hi All,

I have a value of date that is Current_Date= June 04,2019.
I want to convert it Current_Date= June 4,2019
want to remove 0 in Date part.

But when date 10 or 11 bot should not remove anything if date is grater then 10

Kindly help me. Its very urgent for me.


1 Like

Try with this buddy @Naim
Datetime.ParseExact(“June 09,2019”,“MMMM dd,yyyy”,system.Globalization.CultureInfo.InvariantCulture).ToString(“MMMM d,yyyy”)

Thanks for the response but I am facing error error is:
Assign: String was not recognized as a valid DateTime.

Kindly help


Buddy if the new_split_current_date is a variable remove the double quotes around it
no “new_split_current_date”
only new_split_current_date
Cheers @Naim

I have done as suggest by You but I am facing below error:


Kindly Suggest

may i know what is the value in new_split_current_date and its format, buddy
Cheers @Naim

it is string type format

1 Like

what is the value it has… @Naim
in the new_split_current_date variable
Cheers @Naim

June 04, 2019 that is the value

This is really strange buddy
actually it worked, hmmm
fine no worries
can i have a view on your xaml if possible, kindly send the xaml file, project.json file altogether in a zipped folder if possible
Cheers @Naim (10.1 KB)

Please find the attached


Try this:

IF Cint(Datetime.ParseExact(“June 04,2019”,“MMMM dd,yyyy”,system.Globalization.CultureInfo.InvariantCulture).ToString(“dd”)) >= 10


Datetime.ParseExact(“June 04,2019”,“MMMM dd,yyyy”,system.Globalization.CultureInfo.InvariantCulture).ToString(“MMMM dd,yyyy”)


Datetime.ParseExact(“June 04,2019”,“MMMM dd,yyyy”,system.Globalization.CultureInfo.InvariantCulture).ToString(“MMMM d,yyyy”)