I use Cobian Backup 11.
How to convert Date/Time in MainList.lst to human readble?
How to convert Date/Time to human readble
Re: How to convert Date/Time to human readble
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?
--
Luis Cobian
Cobian Backup's creator
Luis Cobian
Cobian Backup's creator
Re: How to convert Date/Time to human readble
Sorry, I pressed the wrong button and disapproved your reply without meaning it.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.
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.
--
Luis Cobian
Cobian Backup's creator
Luis Cobian
Cobian Backup's creator
Re: How to convert Date/Time to human readble
VB.NET
Console.WriteLine(DateTime.FromOADate(BitConverter.Int64BitsToDouble(Convert.ToInt64("0100000011100110001100000100100001100101000010101001001011100001", 2))))
30.05.2024 6:17:45
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
In VB.NET:
```vb.net
Console.WriteLine(DateTime.FromOADate(BitConverter.Int64BitsToDouble(Convert.ToInt64("0100000011100110001100000100100001100101000010101001001011100001", 2))))
```
This will output:
`30.05.2024 6:17:45`
```vb.net
Console.WriteLine(DateTime.FromOADate(BitConverter.Int64BitsToDouble(Convert.ToInt64("0100000011100110001100000100100001100101000010101001001011100001", 2))))
```
This will output:
`30.05.2024 6:17:45`