RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find date validations
Expression
date
Description
if (RadDatePicker1.SelectedDate == System.DateTime.Now.Date) { string strconnection; strconnection = ConfigurationSettings.AppSettings["ConnectionString"].ToString(); SqlConnection cn = new SqlConnection(strconnection); SqlCommand cmd = new SqlCommand("empattendancedetails", cn); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add("@empid", SqlDbType.Int).Direction = ParameterDirection.Input; cmd.Parameters.Add("@date", SqlDbType.DateTime).Direction = ParameterDirection.Input; cmd.Parameters.Add("@intime", SqlDbType.DateTime).Direction = ParameterDirection.Input; cmd.Parameters.Add("@outtime", SqlDbType.DateTime).Direction = ParameterDirection.Input; cmd.Parameters["@empid"].Value = Session["loginid"]; cmd.Parameters["@date"].Value = RadDatePicker1.SelectedDate.ToString(); cmd.Parameters["@intime"].Value = RadTimePicker1.SelectedDate.ToString(); cmd.Parameters["@outtime"].Value = RadTimePicker2.SelectedDate.ToString(); cn.Open(); cmd.ExecuteNonQuery(); cn.Close(); Response.Write("Record Added."); } else Response.Write("enter todays date"); }
Matches
validation
Non-Matches
not validations
Author Rating: Not yet rated. vasireddyveenavani
Source veena
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Title: Why?
Name: Michael Ash
Date: 10/2/2008 10:46:25 AM
Comment:
What does any of this have do with regular expressions?


Copyright © 2001-2024, RegexAdvice.com | ASP.NET Tutorials