Click here to Skip to main content
15,904,153 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how can we get the date/time from bios?

Please Help Me.

Thanks in advance.
Posted

1 solution

Why?
The BIOS date/time is just the same clock that the OS uses to present the date and time to u=you, but in a less friendly form.

Getting the BIOS version won't change anything, so just use:
VB
Dim dt As DateTime = DateTime.Now
 
Share this answer
 
Comments
bluesathish 7-Oct-13 4:48am    
OG is correct. The system timing and the bios timings are same.
basurajkumbhar 7-Oct-13 5:04am    
Thanks for it.
but
when user change the os time that bios date not change.

that's why i want to get Bios date
bluesathish 7-Oct-13 5:08am    
Ok, how did u check that your Bios timing is different from OS timing?
OriginalGriff 7-Oct-13 5:26am    
That turns out not to be the case in all OS's I know. Certainly, Windows updates the BIOS when you change the time in Windows - and there is only the single clock which Windows reads to get the current time - it doesn't maintain a "software" time separate from the BIOS version.

Is it possible that your PC is set to correct the BIOS time from an external source? Some will sync to a Router, others (like mine) sync the time to an internet time service.

How are you comparign teh Windows time / Bios time? That could be relevant here.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900