Hello,
I need to compare the actual time on my server to the value I'm receiving on a database.
For example, let's say the actual time is 1:45 PM and the value in the database is 11:52 AM. I need to compare that if the actual time is after the one on the database, it returns a true value, if not returns a false value.
I tried this ASP code, bit it didn't worked, any ideas?
I need to compare the actual time on my server to the value I'm receiving on a database.
For example, let's say the actual time is 1:45 PM and the value in the database is 11:52 AM. I need to compare that if the actual time is after the one on the database, it returns a true value, if not returns a false value.
I tried this ASP code, bit it didn't worked, any ideas?
Code:
<%
time_from_db = "11:52 AM"
if time_from_db > FormatDateTime(Now,3) then %>
<input type="radio" name="tanda_hora" value="<%= time_from_db %>"><%= time_from_db %>
<%else%>
<strike><%= time_from_db") %></strike>
<% end if %>