Dates (urgent....)

Results 1 to 3 of 3

Thread: Dates (urgent....)

  1. #1
    wini Guest

    Default Dates (urgent....)

    I am sending 2 dates from the HTMl text field to a jscript function and i want to compare these two dates what are the steps that i need to follow<BR>please reply

  2. #2
    pdaly Guest

    Default RE: Dates (urgent....)

    I am assuming the dates are processed using asp at seom point, since this is an ASP forum. If that is correct, you can cheat and use the split function in VBscript.<BR><BR>myarrary = split(mydate,"/")<BR><BR>you would then have myarray(0) as the month, myarray(1) as the day, and myarray(2) as the year. You can pass this in to the javascript using the following code: [date syntax is date(year,month,day)]<BR><BR>&#060;SCRIPT LANGUAGE=JAVASCRIPT&#062;<BR>myJavaScriptDate = new Date(&#060;%= myarray(2) %&#062;,&#060;%= myarray(0) %&#062;,&#060;%= myarray(1) %&#062;);<BR>&#060;/SCRIPT&#062;<BR><BR>Hope this points you in the right direction,<BR><BR>-Pete

  3. #3
    wini Guest

    Default RE: Dates (urgent....)

    Do we have any function like date difference or something in java script

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts