A step by step tutorial teaching you how to create your own chat client and chat server easily in C#, for local networks or the Internet.
A C# tutorial showing you how to make use of WMI to extract information on disk drives, such as model, capacity, sectors and serial number.
This tutorial will teach you how to calculate the shipping cost based on the weight, height, length and depth of the box, the distance and the UPS service type.
Creating a Rich Text Editor using JavaScript is easier to do than you might think, thanks to the support of modern browsers; this tutorial will walk you through it.
Get And Set The System Date And TimeC# code snippet that uses unmanaged code to retrieve the current date and time of the Windows operating system, and also sets it to the specified values. |
On Wednesday, April 23rd 2008 at 11:23 PM By Andrew Pociu (View Profile) ![]() ![]() ![]() ![]() (Rated 4.1 with 18 votes) |
||
|
|||
Digg It!
Del.icio.us
Reddit
StumbleIt
Newsvine
Furl
BlinkList
|
|||
|
|||
Current CommentsHow can i get real system time?
Is there a way of getting system time in real time so that it runs like in its own thread. What ways are there to achieve this? It seems threads are the only way to go ...
hello !
any one can help me?
how can i get the system time only not date .. then i want to assign to the lable?
plz any one can help using c# ASP.net
Hi, In this sample, which format the time display? When I am trying this at 9'o clock it shows 1. What is wrong. And one If you want show date please get the value from that structure.
hi kasinathan
string str=DateTime.Now.ToShortTimeString();
yourLable.Text=str;
Hi all,
The code looks good but when I am trying to run that it is giving me error in hours. I mean when I give 1 in hr place its taking 5pm when I give 14 it taking 6 am and so on. Can any body help in where it is going wrong. I need that for my project.
thanks in advanse.
hi
thats not work in windows 7 !!!
how we can do that ?
hi
thats not work in windows 7 !!!
how we can do that ?
hi
thats not work in windows 7 !!!
how we can do that ?
This does not work properly, when system time is in the hour of 12:--PM
i want to retrieve the date from already stored in sqlserver database and subract retrieve date from today date in asp.net using c#.
Hi,
I tried it. It just dispalays the output form without chnaging the system time. I have Vista installed on my system.
Does this work in windows vista??
Please help
begir
Not working in windows 7
Hello,
I have windows 7 and this sample work fine. I have another prolem, i split "SystemTime" in 2 pieces (SystemTime and SystemData), i need toinsert 'Date' and 'Time' from textbox (or nomatter what)..and don't work. Guess that i mistake at the part. Can someone help me? tks
For those that are having problems setting the time (i.e. setting one hour and getting a different one), this means you have to either compensate your time zone (i.e. for PST-8 you'll have to subtract eight hours) or use the "GetLocalTime" and "SetLocalTime" unmanaged versions.
For those that are having problems setting the time (i.e. setting one hour and getting a different one), this means you have to either compensate your time zone (i.e. for PST-8 you'll have to subtract eight hours) or use the "GetLocalTime" and "SetLocalTime" unmanaged versions.
hi C
thank you very much.. you solved my problem relevant to get current time
1
This is a great trick and I didn’t know you can use C# to obtain the info of your computer
This is a great trick and I didn’t know you can use C# to obtain the info of your computer
Does this trick work for Mac too?
Does this trick work for Mac too?
I needed to create you this tiny word so as to give thanks once again for your pleasant techniques you have provided on this site. This has been shockingly open-handed with people like you to supply openly what exactly a number of people would've offered for an e book to help make some profit for themselves, precisely now that you could possibly have done it in case you desired.
I needed to create you this tiny word so as to give thanks once again for your pleasant techniques you have provided on this site. This has been shockingly open-handed with people like you to supply openly what exactly a number of people would've offered for an e book to help make some profit for themselves, precisely now that you could possibly have done it in case you desired.
Those concepts additionally worked as a good way to recognize that other people have the same desire really like my own to see significantly more in regard to this issue. Certainly there are numerous more pleasurable opportunities up front for people who looked over your blog.
Those concepts additionally worked as a good way to recognize that other people have the same desire really like my own to see significantly more in regard to this issue. Certainly there are numerous more pleasurable opportunities up front for people who looked over your blog.
I have to express my thanks to the writer just for rescuing me from such a difficulty. Because of browsing through the online world and seeing views which were not helpful, I believed my life was done. Existing without the presence of solutions to the problems you've fixed as a result of your main write-up is a crucial case, and the kind which could have in a wrong way affected my entire career if I hadn't discovered your website.
I have to express my thanks to the writer just for rescuing me from such a difficulty. Because of browsing through the online world and seeing views which were not helpful, I believed my life was done. Existing without the presence of solutions to the problems you've fixed as a result of your main write-up is a crucial case, and the kind which could have in a wrong way affected my entire career if I hadn't discovered your website.
Once you have recreated the problem and captured these steps, you can save them to a file and send it to your support person, who can then open it up and view
publish your web page with some innotative concepts with the code. Will make this page a world of good.
invisible fence raleigh nc
http://www.youtube.com/watch?v=AK8aQcka0b0
[youtube http://www.youtube.com/watch?v=AK8aQcka0b0]
http://www.youtube.com/user/insanityschedule
Related Source Code
Related Tutorials
C# Job SearchFrom the creators of Geekpedia, a revolutionary new coupon website!
BargainEZ has coupons codes, printable coupons, bargains and it is the leading source of Passbook coupons for iPhone and iPod touch devices.