Basic Date Picker Forums

Welcome to Basic Date Picker Forums Sign in | Join | Help
in Search

How can i get the current date( Todays date) using client-side JavaScript API

Last post 04-11-2006, 4:29 AM by vb_net_vb. 1 replies.
Sort Posts: Previous Next
  •  03-31-2006, 5:33 AM 470

    How can i get the current date( Todays date) using client-side JavaScript API

    hi,

    we have a client-side JavaScript API method ... getSelectedDate() for getting the selected date....
    Similarly how can i get Todays date? Is there any methos available?
    My problem is,  i need to write a comparision wherein i should check whether  the selected date is one month ahead of todays date   i.e., 
      Selected date > Todays Date + 1 month... something like this

    so what method can i use to get the current date using client-side JavaScript API method?

    pls help ASAP
    Thank you
  •  04-11-2006, 4:29 AM 472 in reply to 470

    Re: How can i get the current date( Todays date) using asp.net

    Hi Sir,

    I have same problem if have soln plz help me
    I am working on Date project.
    In that i want display Today date,
    Tommorow date and next date of tommorow .If tommorw is holiday then display date is Today+2 else
    Today+1 same thing for next date of tommorow . for ex--
    If today =10/04/2006
     tommorow=11/04/2006
    next tommorw=12/04/2006
    if there is holiday on 11 then result is
    If today =10/04/2006
     tommorow=12/04/2006
    next tommorw=13/04/2006
    and probliem is at end of month
    If today =30/04/2006
     tommorow=31/04/2006
    next tommorw=01/05/2006
    is like this but it show as
    If today =30/04/2006
     tommorow=31/04/2006
    next tommorw=32/04/2006
    why so plz tell me what can i do
    plz send rply soon
    thanks.

View as RSS news feed in XML
 
Powered by Community Server, by Telligent Systems