Asp.net Gridview Display Only Date and Only Time like 11:15 PM

For Only Date
<asp:BoundField DataField=”Date”  HeaderText=”Date”  dataformatstring=”{0:MM/dd/yyyy}” htmlencode=”false”/>

For Only Time
<asp:BoundField DataField=”Time” DataFormatString=”{0:HH:mm tt}”  HtmlEncode=”False” HeaderText=”Your Time” >

Advertisement

One thought on “Asp.net Gridview Display Only Date and Only Time like 11:15 PM

  1. Just desire to say your article is as surprising.
    The clarity on your post is simply nice and i could assume you’re an expert in this subject. Well together with your permission allow me to grasp your RSS feed to stay up to date with coming near near post. Thanks a million and please carry on the enjoyable work.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s