You can declare a variable of kind Date and assign the data to that variable
for eg:
VB
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim ObjLocDate As Date
Dim StrLocTime As String = "09:00:00 AM"
ObjLocDate = Convert.ToDateTime(StrLocTime)
End Sub
C#
protected void
Page_Load(object sender, System.EventArgs e)
{
System.DateTime ObjLocDate = default(System.DateTime);
string StrLocTime = "09:00:00 AM";
ObjLocDate = Convert.ToDateTime(StrLocTime);
}