How to show date with in the repeater in c#

Posted by Raghuldrag under ASP.NET on 8/19/2014 | Points: 10 | Views : 484 | Status : [Member] | Replies : 3
Hi Friends,

i wanna create one application in that i wanna make date control with date database connection with in the database.

Hoe to make that ???




Responses

Posted by: Sheonarayan on: 8/19/2014 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
Hi Raghu,

Your title of the question and inside description is not looking in sync with me, however based on what I understand you can show the date in repeater something like below.

<ItemTemplate>
<%= DateTime.Now %>
</ItemTemplate>


In case you have date type of field and want to display inside the Repeater, you can use something like
<ItemTemplate>
<%# Eval("CreatedDateTime") %>
</ItemTemplate>


If you want to customize the look and feel of Date, do like this.

In case you have date type of field and want to display inside the Repeater, you can use something like
<ItemTemplate>
<%# DateTime.Parse(Eval("CreatedDateTime").ToString()).ToShortDateString() %>
</ItemTemplate>


Hope this helps.

Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Raghuldrag, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Raghuldrag on: 8/20/2014 [Member] Starter | Points: 25

Up
0
Down
Hi Sheo,

i want show the datetimer picker textbox with in repeater along with insert on that

how to do ?

Raghuldrag, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naveenhcl on: 9/3/2014 [Member] Starter | Points: 25

Up
0
Down
Hi,

What's the issue, did you face any issues while doing this.?
Did you tried anything.? First of all you should try by your own and then expect from others help without try it by your own how did you expect help from others.?

Raghuldrag, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response