Hi,
unable to convert date time format please help, below screenshots FYR.
source date format : dd/MM/yyyy
required output format : dd MMMM yyyy
Hi,
unable to convert date time format please help, below screenshots FYR.
source date format : dd/MM/yyyy
required output format : dd MMMM yyyy
Please try this
Datetime.ParseExact(stringvariable,"dd/MM/yyyy",System.Globalization.culturalInfo.InvariantCulture).ToString("dd MMMM yyyy")
Cheers
That should be like this
Datetime.ParseExact(in_transactionitem.item("DOJ").ToString,"dd/MM/yyyy",System.Globalization.culturalInfo.InvariantCulture).ToString("dd MMMM yyyy")
I hope your item is a data row
Cheers
My bad it is cultureinfo
Datetime.ParseExact(in_transactionitem.item("DOJ").ToString,"dd/MM/yyyy",System.Globalization.cultureInfo.InvariantCulture).ToString("dd MMMM yyyy")
Cheers
Thanks worked
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.