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 !




RE:Extracting only date from mm/dd/yyyy


Posted Date: 30 Aug 2008      Total Responses: 2

Posted By: satish       Member Level: Bronze     Points: 1



Hello all
How to extract only date from mm/dd/yyyy(datetimePickercontrol) with out using substring,by using control(datetimePickercontrol) in c# windows form.

Thanks & Regards
satish





Responses

Author: suresh kumar    30 Aug 2008Member Level: BronzeRating:     Points: 4

hai...
u can give like this
dtp_Arrivdate_Single.Text = Date.Now.ToShortDateString
or
click in date time picker...then go to properties....in that in custom format u can manually declare ur format as mm/dd/yyyy..then in the same properties window set format option as custom.....



Author: Appukuttan    01 Sep 2008Member Level: DiamondRating:     Points: 2

Hi..

Datetime dDate=datetime.now;

string Date=dDate.tostring("MM/dd/yyyy");

Date will return only date with format MM/dd/yyyy format.



Post Reply
You must Sign In to post a response.
Next : binding the columnvalue to the combobox in Windowsform
Previous : Money value in sqlserver
Return to Discussion Forum
Post New Message
Category: Windows

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use