Thanks man. Regds, Mahendiran
On Wed, Apr 21, 2010 at 12:06 PM, [email protected] <[email protected]>wrote: > Hi mahendiran, > > I don't provide the complete datepicker code...with google you can > find many if you don't want to implement that yourself, but with this > simple code you can get started with javascript date and split. Split > the string what you get from the datepicker. > > P.S I usually use only one textbox with complete date > > Stefan Brandt > Helsinki, Finland > > <html> > <head> > <script type="text/javascript"> > <!-- > function getCurrentCompleteDate() > { > var currentTime = new Date(); > var month = currentTime.getMonth() + 1; > var day = currentTime.getDate(); > var year = currentTime.getFullYear(); > return month + "/" + day + "/" + year; > } > function changedate() > { > var strCurrentDate = > getCurrentCompleteDate(); > var arrSplittedDate = > strCurrentDate.split("/"); > > if(arrSplittedDate.length == 3) > { > document.getElementById("mm").value > = arrSplittedDate[0]; > document.getElementById("dd").value > = arrSplittedDate[1]; > > document.getElementById("yyyy").value = arrSplittedDate[2]; > } > } > //--> > </script> > </head> > <body> > <div> > Effective Date <input type="text" id="mm" > value="mm"> / <input > type="text" id="dd" value="dd"> / <input type="text" id="yyyy" > value="yyyy"> > <input type="button" value="Get current date" > onclick="changedate()"> > </div> > </body> > </html> > > On Apr 19, 2:07 pm, mahendiran jayavarma <[email protected]> > wrote: > > Hi all, > > > > This is mahendiran. Please check the attachment image file. > > > > I need for date time picker control and split date , month, year in each > > textbox . > > > > Please provide guidance or code for javascript.. > > > > Thanks, > > > > Mahendiran Jayavarma. > > > > -- > > Subscription settings: > http://groups.google.com/group/dotnetdevelopment/subscribe?hl=en > > > > date.JPG > > 7KViewDownload >
