Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
connect.com.CommandText = "select SUBMITTED_DATE from tbl_Fee_Submitted where FEES_PAID_MODE='CASH' ;

tbxdate.text=convty.dr1["SUBMITTED_DATE "].tostring();

its gives date n time format.. i want only date in dd.MM.yyyy format
Posted
Comments
__TR__ 17-May-13 3:18am    
Try
tbxdate.text=convty.dr1["SUBMITTED_DATE "].tostring("dd.MM.yyyy");
Refer
Custom Date and Time Format Strings[^]

1 solution

Use this query:
select convert(varchar(20),SUBMITTED_DATE,105) from tbl_Fee_Submitted where FEES_PAID_MODE='CASH'
 
Share this answer
 
Comments
Member 9993510 17-May-13 3:46am    
like

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900