View Complete Post
hey Guys,I have a table with a date field that had date saved in the format ofyyyy-mm-dd, what i want to achieve is when I display them I want them to be displayed as an example "September 05 2009" format. can anybody help me with this??Thank you very much.Chetan
I want to desplay date like (21-Sep-2010)
I'm new here - just started, and already have a problem...
the database - 2 of my GridView cells: From Period, and Till Period -
retrieve dates in the format YYYYMM - that is: just Year and Month. For
I want for the date to be displayed in the Grid at the following format MM/YYYY - that is:
From the database - 2 of my GridView cells: From Period, and Till Period - retrieve dates in the format YYYYMM - that is: just Year and Month. For Example:
I have displayed summary view of calendar web part and want to change the date format from 10-24-2010 to 10-24 I don’t want to display the year can anyone help
I am getting date on my aspx page as
10/22/2010 11:52:07 AM
How can i change the format so that i becomes:
22 Oct 2010 11:52 AM
I am using a text box which captures the date from the datepicker and displays in dd/MM/yyyy format in asp.net using C#
When i try to pass this text box value into the DatTime variable i am getting the error as
"String was not recognized as a valid DateTime. "
my code goes like this
i tried to use Conver.ToDateTime() function but the same error is croping up..
Can any one plz suggest me on this.....Thnks in advance
I want to change calendar date backColor base on data from db, I only have vistual 2003 !
on mean time I have
<asp:DataGrid id="DataGrid1" style="Z-INDEX: 102; LEFT: 23px; POSITION: absolute; TOP: 271px"
runat="server" Font-Size="XX-Small" Font-Names="Verdana" AutoGenerateColumns="False" Visible="False">
<asp:BoundColumn DataField="subject" HeaderText="Title"></asp:BoundColumn>
<asp:BoundColumn DataField="posttimestart" HeaderText="Post date"></asp:BoundColumn>
Sub DayRender(ByVal source As Object, ByVal e As DayRenderEventArgs)
Dim i As Integer
For i = 0 To DataGrid1.Items.Count - 1
If (DataGrid1.Items(i).Cells(1).Text = e.Day.Date) Then
e.Cell.BackColor = Color.DarkOrange
when I click the day wich have data in db it change color , but I want the page load it change color !