Skip to content
Loading
StartTime and Endtime
+1
  • If ((dt.Rows(i).Item("DisplaySDate") <= DateTime.Now) && (dt.Rows(i).Item("DisplayEDate") >=  DateTime.Now) Then
          Me.Visible = True
    ELSE   
          Me.Visible = False
    End If
     
     
    so that now you can see only that contain which is between the start and end date. 
    +1
  • Ekrem Tapan
    just i mean i have a one post then i wantto set for this post displaydate and display off date
    from backend when i create post for ex title photos content displaystartdate and displayenddate input then save it
    displaystartdate : 2015/10/2
    displaystartdate : 2015/10/5
    and front end when date 2015/10/2 my post automatically show up and when date is 2015/10/5 my post automatically off
    +1
  • Manas Mohapatra
    Could you please provide more information. Are you getting any kind of exception when you are writing above code?
    +1