C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




date format


Posted Date: 07 Oct 2008      Total Responses: 2

Posted By: suze       Member Level: Gold     Points: 1


Hi all,


Whether we can change the format of date displayed on textbox using javascript.Its urgent pls help.Pls give the code




Responses

Author: balaji    07 Oct 2008Member Level: BronzeRating:     Points: 3
need not go for javascript
try
public String ChangeDateFormat(DateTime datDatetoConvert)
{
return datDatetoConvert.ToString("MM/dd/yyyy");
}
you can do this using javascript also



Author: Varun Bansal    07 Oct 2008Member Level: GoldRating:     Points: 3
public datechange(DateTime datetocon)
{
document.getElementId("txt_date").value=datetocon.ToString("MM-dd-yyyy");
}

regards
varun bansal



Post Reply
You must Sign In to post a response.
Next : Encryption in .NET
Previous : AJAX
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

silicone halloween masks

Contact Us    Privacy Policy    Terms Of Use