Click here to Skip to main content
16,022,660 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to get selected date and time from RadDatePicker(MM/dd/yyyy hh:mm:ss)



i got this 1/17/2019 12:00:00 AM instead of 1/17/2019 12:23:45


help

What I have tried:

Response.Write( RadDatePicker1.SelectedDate.Value.ToString())
Posted
Updated 19-Jan-19 1:29am

1 solution

You should be able to add formatting instructions in the ToString call.

C#
Value.ToString("M/d/yyyy hh:mm:ss")
 
Share this answer
 

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