What should i do in here?

Anyone can help ?

How can i solve this problem ?

@170290064

What’s the type of originalDate ?

Hi,

I think orginalDate is String type. If you need to convert dd.MM.yyyy style, the following may work.

CDate(orginalDate).ToString("dd.MM.yyyy")

Regards,

Hello @170290064
The OriginalDate is in String format. The string value cannot convert into the desired format. If It is DateTime Variable It is possible to convert it into desired format.

image

image

@170290064 Try this DateTime.ParseExact(originalDate, “dd/MM/yyyy”, CultureInfo.InvariantCulture)

You have to import System.Globalization

@170290064

Try:
DateTime.ParseExact(originalDate, “dd MMMM yyyy”, CultureInfo.InvariantCulture).ToString(dd.MM.yyy)

Hi,

Can you try the following expression?

DateTime.ParseExact(orginalDate,"d MMMM yyyy",new System.Globalization.CultureInfo("tr_TR")).ToString("dd.MM.yyyy")

Regards,

Hi @170290064

In the place of dots in between date month and year give the slash \ like below

OriginalDate.toString(dd\MM\yyyy)

Hope it helps!!

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