Click here to Skip to main content
16,023,339 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
The date diplaying in my datagrid is in the dd/mm/yyyy format.
I am filling the textboxes on the click of datagrid.
I want to change the format of date back to mm/dd//yyyy while filling the textbox.

I have written the code for filling the textbox in javascript and calling that function onclick of datagrid.

Please help me.
Posted

1 solution

Hi...

VB
Dim date_One As New DateTime
date_One = DateTime.Now.Date

Text1.Text = date_One.ToString("MM/dd/yyyy")
 
Share this answer
 
v2

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