Convert Date

  • Thread starter Thread starter Tamar Solutions
  • Start date Start date
T

Tamar Solutions

Hi - I am trying to convert the following info (WMI BIOS) to a DateTime
object - Is there a way to do this -

ReleaseDate
Data type: datetime
Access type: Read-only

Release date of the Windows BIOS in the Coordinated Universal Time (UTC)
format of YYYYMMDDHHMMSS.MMMMMM(+-)OOO.




cheers

JlhJ
 
Tamar said:
Hi - I am trying to convert the following info (WMI BIOS) to a DateTime
object - Is there a way to do this -

ReleaseDate
Data type: datetime
Access type: Read-only

Release date of the Windows BIOS in the Coordinated Universal Time (UTC)
format of YYYYMMDDHHMMSS.MMMMMM(+-)OOO.

You can use DateTime.ParseExact
which accepts a string representation of the date to be parsed and a
format specifying what format that string is in.

HTH
JB
 
Back
Top