Ekrem Tapan

Ekrem Tapan

  • NA
  • 533
  • 17.4k

StartTime and Endtime

Oct 1 2015 2:06 AM
hello everybody, i wantto ask  
i have a two variable date starttime and end time.
 
when i create a post set that show time and end time
 
so can i use this code set it ?  on frontend
 
If ((dt.Rows(i).Item("DisplaySDate") <= DateTime.Now) && (dt.Rows(i).Item("DisplayEDate") >= DateTime.Now) Then
Me.Visible = True
ElseIf dt.Rows(i).Item("DisplayEDate") < DateTime.Now Then
Me.Visible = True
Else
Me.Visible = False
End If
 

Answers (6)