Click here to Skip to main content
15,900,108 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: 'sys' is undefined while using update panel [modified] Pin
Parwej Ahamad2-Oct-09 3:44
professionalParwej Ahamad2-Oct-09 3:44 
Questiondate comparision in javascript with asp.net Pin
paya1pa2-Oct-09 2:58
paya1pa2-Oct-09 2:58 
Answer[Message Deleted] Pin
Parwej Ahamad2-Oct-09 3:35
professionalParwej Ahamad2-Oct-09 3:35 
GeneralRe: date comparision in javascript with asp.net Pin
Manas Bhardwaj2-Oct-09 4:06
professionalManas Bhardwaj2-Oct-09 4:06 
GeneralRe: date comparision in javascript with asp.net Pin
Parwej Ahamad2-Oct-09 8:32
professionalParwej Ahamad2-Oct-09 8:32 
GeneralRe: date comparision in javascript with asp.net Pin
Manas Bhardwaj3-Oct-09 10:14
professionalManas Bhardwaj3-Oct-09 10:14 
AnswerRe: date comparision in javascript with asp.net Pin
Manas Bhardwaj2-Oct-09 4:10
professionalManas Bhardwaj2-Oct-09 4:10 
GeneralRe: date comparision in javascript with asp.net Pin
Abhishek Sur2-Oct-09 6:54
professionalAbhishek Sur2-Oct-09 6:54 
Manas Bhardwaj wrote:
var toDate = new Date('02/10/2009');
var fromDate = new Date('03/10/2009');


But This means
toDate = 10th Feb 2009
fromDate = 10th March 2009


So it is better to use setFullYear(year,month -1, day) like this:

var toDate=new Date();
toDate.setFullYear(2009,9,2); // Represents 2nd October 2009.

Smile | :)

Abhishek Sur

My Latest Articles
Create CLR objects in SQL Server 2005
C# Uncommon Keywords
Read/Write Excel using OleDB

Don't forget to click "Good Answer" if you like to.

Questionedit crystal report connection string Pin
vikas shukla2-Oct-09 2:43
vikas shukla2-Oct-09 2:43 
AnswerRe: edit crystal report connection string Pin
Manas Bhardwaj2-Oct-09 4:13
professionalManas Bhardwaj2-Oct-09 4:13 
AnswerRe: edit crystal report connection string Pin
Manas Bhardwaj2-Oct-09 4:13
professionalManas Bhardwaj2-Oct-09 4:13 
Questionvalue pass in textbox in java script Pin
paya1pa2-Oct-09 2:26
paya1pa2-Oct-09 2:26 
AnswerRe: value pass in textbox in java script Pin
hemant.kaushal2-Oct-09 2:29
hemant.kaushal2-Oct-09 2:29 
GeneralRe: value pass in textbox in java script Pin
paya1pa2-Oct-09 2:49
paya1pa2-Oct-09 2:49 
AnswerRe: value pass in textbox in java script Pin
Sreyas M N22-Oct-09 19:13
Sreyas M N22-Oct-09 19:13 
QuestionAccessing ASP.Net Controls from OCX Control. Pin
VikashGohil2-Oct-09 0:25
VikashGohil2-Oct-09 0:25 
AnswerRe: Accessing ASP.Net Controls from OCX Control. Pin
Christian Graus2-Oct-09 0:39
protectorChristian Graus2-Oct-09 0:39 
GeneralRe: Accessing ASP.Net Controls from OCX Control. Pin
VikashGohil2-Oct-09 0:54
VikashGohil2-Oct-09 0:54 
Questionaccess database Pin
mylogics1-Oct-09 23:28
professionalmylogics1-Oct-09 23:28 
AnswerRe: access database Pin
sashidhar2-Oct-09 0:01
sashidhar2-Oct-09 0:01 
AnswerRe: access database Pin
Kannan Ar2-Oct-09 0:09
professionalKannan Ar2-Oct-09 0:09 
GeneralRe: access database Pin
mylogics2-Oct-09 0:13
professionalmylogics2-Oct-09 0:13 
GeneralRe: access database Pin
sashidhar2-Oct-09 0:17
sashidhar2-Oct-09 0:17 
GeneralRe: access database Pin
Kannan Ar2-Oct-09 0:30
professionalKannan Ar2-Oct-09 0:30 
GeneralRe: access database Pin
mylogics2-Oct-09 0:34
professionalmylogics2-Oct-09 0:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.