Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8335455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T03:40:58+00:00 2026-06-09T03:40:58+00:00

I am using ASP.NET VB. I am tring to make sure one date is

  • 0

I am using ASP.NET VB. I am tring to make sure one date is greater than the other.

I have the following:

    For Each row1 In dtDataTable2.Rows

      If (row1("ActualDate") > row1("DueDate")) Then

      End If
    Next

Both ActualDate and DueDate are dates.
I get the following:

Option Strict on prohibits operands of type Object ‘>’.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T03:41:00+00:00Added an answer on June 9, 2026 at 3:41 am

    If you change your code to something like:

    If (CDate(row1("ActualDate")) > CDate(row1("DueDate"))) Then
    

    it will work.

    The value type returned by the default property on a DataRow (which is the Item property) is an object, so you need to convert the object to the type of data you need.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to make a login page using html, ajax & ASP.NET.The data is
I have been using telerik extensions for an asp.net mvc project, more specifically the
I'm using the following code in an ASP.NET page to create a record, then
I am learning the State Design Pattern. I am using C# ASP.Net (not sure
General Info: ASP.NET MVC app using ADO.NET Entity Framework SQL Server 2005 I have
I am trying to achieve the following: I am using MySQL and ASP.NET. I
Using ASP.NET MVC when trying to get the information stored on my Session[objectName] from
I'm using asp.net mvc2 and trying to send a list of json objects with
When using ASP.NET MVC plus Entity Framework, and trying to implement a generic repository
I'm using Asp.Net together with MySql and I'm trying to solve the error: Timeout

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.