Home | Articles|Namespace|Interview Questions|Tools|Jobs|Projects|Community
Asp.net Tutorials

»Dotnet Ads
»Message Boards
Message Boards
Dotnet Books

»Member Details
Register
Login
LogOut
Submit Code
Submit Jobs
Submit Projects

»Competition
Community
Winners
Prizes
Write For Us
Members

»Other Resources
Links
Dotnet Resources

formatting time and sending as parameter to sql

formatinng time and sending as parameter to sql thic code does that
Private Function FomatTime(ByVal strhours As String, ByVal strminutes As String, ByVal strseconds As String, ByVal strampm As String) As String

Dim formattedstr = ""
If (strhours.Length < 2) Then
strhours = "0" & strhours
End If

If (strminutes.Length < 2) Then
strminutes = "0" & strminutes
End If

If (strseconds.Length < 2) Then
strseconds = "0" & strseconds
End If


formattedstr = " " & strhours & ":" & strminutes & ":" & strseconds & " " & strampm

Return formattedstr


End Function

Have a Question and dont know the answer post it below and get answers in minutes

Due to spam this feature is disabled
To get answers fast , make sure you enter a detailed subject for example: "DataGrid issues need answer" not "DataGrid"

Subject:

Catjegory Name:

Message:



© 2008 dotnetwatch.com -- Privacy policy