This Blog contains code snippets which I came across when programming in C#.These short code snippets will facilitate easy programming in C#.Any code snippets you wish to perceive will also be uploaded on request.
Popular Posts
-
1. Client Side Scripting In client side scripting the client requests a web page and the server returns an HTML document and an embedded a...
-
PROCEDURE How to obtain details of the server u want to send an email through on command prompt follow the following steps 1...
-
using .... //include all the libraries you want to include namespace trialprograms { public partial class Form1 : Form { ...
-
Partial classes give you the ability to split a class into more than one source code .cs file. If a class becomes particularly long and int...
-
Make Life Easy: Code to send email through C# .net using Gmail ser... : "PROCEDURE How to obtain details of the server u wan...
-
What exactly happens when an ASP.NET receives a request for the Codename.aspx First the request for the page is sent to the web server.If ...
-
HERE :FormName is the name of the Form formobject is the object of the form CODE SNIPPET: FormName formobject =...
-
To obtain the path of where the vb.net windows form is loaded: string path = System.Windows.Forms.Application.StartupPath; ...
-
Make Life Easy: Behind the scenes of a ASP.NET code : "What exactly happens when an ASP.NET receives a request for the Codename.aspx F...
-
*dtpDate.Value > DateTime.Now OR *dtpDate.Value<DateTime.Now OR *dtpDate.Value<=DateTime.Now You may apply any operator in b...
Thursday, June 23, 2011
Tuesday, June 14, 2011
how to compare any date value with the current system date in c#
*dtpDate.Value > DateTime.Now
OR *dtpDate.Value<DateTime.Now
OR *dtpDate.Value<=DateTime.Now
You may apply any operator in between the two values in order to compare.
Here the value marked star can be any value you wish to compare with the system date.
Subscribe to:
Posts (Atom)