Converting Number format into Date Format

Hello everyone,

In my excel i am getting input in 43800 format i want to convert it into Date format

Thank you inadvance

Hi @Deep_Vekariya

Try this:

DateTime.FromOADate(43800)

image

Regards

1 Like

Hi @Deep_Vekariya

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

Regards,

1 Like

Hey @Deep_Vekariya

Integer Number is called as OA Date,
Use below mentioned query to convert OA Date to Date Format.

Datetime.FromOADate(Cdbl(Variable_Name))

Regards,
Ajay Mishra

1 Like

Thanks everyone for the help,

@Ajay_Mishra My input was in string so,this solution is working for me.

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