This blog is about the dotnet.all types of codes,news about dotnet including asp.net,vb.net,c# and know about new dotnet technology.programing in asp.net,vb.net,c#, ajax, AJAX tech support for .net and discuss the new technology in dotnet.ncluding asp.net,vb.net,c# and know about new dotnet technology.programing in asp.net,vb.net,c#, ajax, AJAX tech support for .net and discuss the new technology in dotnet.asp.net programming,dot net programming,dotnet programs,dotnet source code,source code.

Free Hosting

Free Hosting

Sunday, November 2, 2008

CODE to formatting time and sending as parameter to SQL

formatinng time and sending as parameter to sql thic code does that

CODE:
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

0 comments:

dotnet(.Net) Project Source code Downloads and Tutorials

Email Subscrption



Enter your email address:

Delivered by FeedBurner

Feedburner Count

Blog Archive

Unique Visitor

Design by araba-cı | MoneyGenerator Blogger Template by GosuBlogger