date and time format
By bryan tugade
I have compiled a different type of format for date and time. Hope this compiled code for date and time can help you.
How to use this.
1. Put the dll into your bin folder.
2. Add this as a reference.
3. Use it in anyway you like.
i.e.
Imports btdateCompilation.btdc
Imports btdateCompilation
Partial Class _Default
Inherits System.Web.UI.Page
Private Shared myDate As New btdc
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
With myDate
Label1.Text = .customDate(Now, dtt.ShortDayname).ToString()
Label2.Text = .customDate(Now, dtt.fullDayName).ToString()
Label3.Text = .customDate(Now, dtt.hour12).ToString()
Label4.Text = .customDate(Now, dtt.hour24).ToString()
end with
End Sub
End Class
Sample Output

You can download the example here
Please let me know if there is something I missed. Happy Coding.
date and time format (136 Views)
I cannot find the control on the ui of the aspx page. case "NOC Ticket Email": / / Display everything in readonly { string state TicketStatusID = "uxLookupField" + state + "TicketStatus"; Control ticketStatus = ControlFinder.FindControl<uxLookupFieldTicketStatus> (this.Page, TicketStatusID); I have a state = "Open" uxLookupFieldOpenTicketStatus is a control help would be greatful Hi Is it visible in the Page? , best ways after load your page right in click on the browser then select the view source for that page, then find your is in the collection. I think you are control not added to the page control collections. and you code ways is fine. So check 0 0 ctl00 ASP.app_masterpages_sidwebclientmasterpage_master 125577 0 0 ctl00$ctl05 System.Web.UI.LiteralControl 172 0 0 ctl00$Head1 System.Web.UI.HtmlControls
net please give the equivalent vb.net code for this System.Web.UI.Page mypage = (System.Web.UI.Page)HttpContext.Current.Handler; Hi Please try to do like this Dim mypage As System.Web.UI.Page = DirectCast(HttpContext.Current.Handler, System.Web.UI.Page
in the !postback and void InputImage5_Click. I am confused? using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Web; using System.Web.SessionState; using System.Web.UI; using System.Web.UI.WebControls; using System.Web
is Ambiguity Error in all my labels and textfields?? using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data.SqlClient; using System.Configuration; public
repopulate the listbox when I come back from the last page if index is saved in a session state? using System; using System.Collections; using System.Collections.Specialized; using System.ComponentModel; using System.Data; using System.Drawing; using System.Web; using System.Web.SessionState; using System.Web.UI; using System.Web.UI
as if it was a checkboxlist and not listbox? using System; using System.Collections; using System.Collections.Specialized; using System.ComponentModel; using System.Data; using System.Drawing; using System.Web; using System.Web.SessionState; using System.Web.UI; using System.Web.UI.WebControls
Method not found: System String System Web UI Web why it always show this error when I run it check wht is the problem?please! Public Class InsAss Inherits System.Web.UI.Page Protected WithEvents txtnama As System.Web.UI.WebControls.TextBox Protected WithEvents txtsiri As System.Web
Throw Exception System.Web.HttpUnhandledException: Exception of type System.Web.HttpUnhandledException was thrown. - --> System.ArgumentOutOfRangeException: Length cannot be less than zero. Parameter name: length at System.String.Substring(Int32 startIndex, Int32 length) at System.Web.UI.Util.GetScriptLocation(HttpContext context) at System.Web.UI.WebControls.BaseValidator.RegisterValidatorCommonScript() at System.Web.UI.WebControls