Convert OAdate format into ("dd/mm/YYYY")

Hello community member pls help me to solve this
How to convert OAdate format into (“dd/MM/yyyy”) ? i have 44200.5 as a input

Thanks in advance

Hi @shiv.mandal ,

Try with this expression
DateTime.FromOADate(Convert.ToDouble(inputstringvariable)).ToString(“dd/MM/yyyy”)

Regards,
Ashok :slight_smile:

Hi @shiv.mandal

Try This

DateTime.FromOADate(44200.5).ToString("dd/MM/yyyy")

image

Hope it will helps you :slight_smile:
Cheers!!

Hi @shiv.mandal

Try this:

formattedDate = DateTime.FromOADate(CDbl(inputString)).ToString("dd/MM/yyyy")

@shiv.mandal

YourDateVariable = DateTime.FromOADate(44200.5).ToString("dd/MM/yyyy")

Hi @shiv.mandal

Try this:

DateTime.FromOADate(Convert.ToDouble("44200.5")).ToString("dd/MM/yyyy")

If output is of DataType System.Double then use below syntax:

DateTime.FromOADate(44200.5).ToString("dd/MM/yyyy")

Regards

Thank You for your help.

1 Like

Thank you everyone for the valuable response .

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