Page 1 of 1

How to convert Date/Time to human readble

Posted: 11 May 2024, 03:04
by XNeon
I use Cobian Backup 11.
How to convert Date/Time in MainList.lst to human readble?

Re: How to convert Date/Time to human readble

Posted: 13 May 2024, 18:12
by cobian
I really don't remember now (that program is 12 years old now) but wasn't a DatetTime tool included with it under the Tools menu?

Re: How to convert Date/Time to human readble

Posted: 16 May 2024, 10:23
by cobian
Yes, there is a date and time in the tools menu.
But I need to set up monitoring and for this I need to get data from configuration files.
Sorry, I pressed the wrong button and disapproved your reply without meaning it.

If I remember it correct the date abnd time is just a double decimal that stores a date and time as the number of days since the start of the day on December 30, 1899, which is the standard used in OLE automation. The integer part is the number of days, and the fractional part specifies the time of day.

Re: How to convert Date/Time to human readble

Posted: 30 May 2024, 08:11
by andreyhab
VB.NET

Console.WriteLine(DateTime.FromOADate(BitConverter.Int64BitsToDouble(Convert.ToInt64("0100000011100110001100000100100001100101000010101001001011100001", 2))))

30.05.2024 6:17:45

Re: How to convert Date/Time to human readble

Posted: 04 Sep 2024, 10:04
by macaroni
In VB.NET:

```vb.net
Console.WriteLine(DateTime.FromOADate(BitConverter.Int64BitsToDouble(Convert.ToInt64("0100000011100110001100000100100001100101000010101001001011100001", 2))))
```

This will output:

`30.05.2024 6:17:45`