.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> www.DotNetSpark.com >> Post New QuestionBookmark and Share Subscribe to Forum

date functions

Posted By: softraj     Posted Date: July 06, 2010    Points:2   Category :www.DotNetSpark.com
I need a date related function which accepts two dates and determines wheater those dates are of same day or not.

Responses
Author: Syed Shakeer Hussain             
Posted Date: July 07, 2010     Points: 5   

Hi,

code for to check two dates equal are not in SQLSERVER


declare @a varchar(20)
declare @b varchar(20)
set @a='2010-07-07'
set @b='2010-07-07'
if (@a=@b)
print 'same date'
else
print 'not same date'



Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend