VB.NET & TimeValue() - TimeValue() : Returns a Variant of subtype Date containing the time.
ShotDev Focus:
- VB.NET & TimeValue()
Example
TimeValue.aspx
<%@ Page Language="VB" %> <script runat="server"> Sub Page_Load(sender As Object, e As EventArgs) Session.LCID = 1033 Me.lblText1.Text = TimeValue("22:35:17 PM") Me.lblText2.Text = TimeValue("22:35:17") Me.lblText3.Text = TimeValue("12:35:17") End Sub </script> <html> <head> <title>ShotDev.Com Tutorial</title> </head> <body> <form runat="server"> <asp:Label id="lblText1" runat="server"></asp:Label><br /> <asp:Label id="lblText2" runat="server"></asp:Label><br /> <asp:Label id="lblText3" runat="server"></asp:Label><br /> </form> </body> </html>
Screenshot