Click here to Skip to main content
15,939,960 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I want to display current time in front of date in Ajax calendar pop up. Ajax calendar only show Date. but in calendar i want date + time.
Posted
Comments
[no name] 29-Apr-14 3:29am    
Format="dd/MM/yyyy/hh/mm/ss"
sudhir.mali 29-Apr-14 4:30am    
hi already showed date time in text box.now i want to show time append to date in calendar popup. & hh:mm:ss takes by default value(e.g 12:00:00) instead of that it should take current time (e.g. 02:12:30)
[no name] 29-Apr-14 5:03am    
how it is possible, you are selecting next or previous date using calander,not current date , if you want to get current date time instead of using calander use System's Datetime function i.e Now

1 solution

Use

VB
<asp:CalendarExtender ID="txtOrderDate_CalendarExtender" runat="server" TargetControlID="txtOrderDate"
                                PopupButtonID="txtOrderDate" Format="dd/MM/yyyy/hh/mm/ss">
 
Share this answer
 
Comments
Parazival 7-May-15 2:26am    
time is showing only todays date

if i select another date time is 00:00:00

how to solve

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