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


Manas MohapatraRank #182 · 13.2K reputationPosted Oct 1, 2015, 12:37 AM EDT
Manas MohapatraRank #182 · 13.2K reputationPosted Sep 30, 2015, 11:37 PM EDT
Ekrem TapanRank #1,694 · 900 reputationPosted Sep 30, 2015, 11:45 PM EDT
Ram Mourya125 reputationPosted Oct 1, 2015, 12:25 AM EDT
Ekrem TapanRank #1,694 · 900 reputationPosted Oct 1, 2015, 1:02 AM EDT
" & dt.Rows(i).Item("contents").ToString & "
"Ekrem TapanRank #1,694 · 900 reputationPosted Oct 1, 2015, 7:33 AM EDT
Dim startTime As DateTime = DateTime.Parse(dt.Rows(i).Item("DisplaySDate").ToString())
Dim endTime As DateTime = DateTime.Parse(dt.Rows(i).Item("DisplayEDate").ToString())
If ((now.CompareTo(startTime) > 0) And (now.CompareTo(endTime) < 0)) Then
Me.Visible = True
Else
Me.Visible = False
End If