+ Reply to Thread
Results 1 to 5 of 5

How can i compare dates?

Hybrid View

aijihz How can i compare dates? 03-24-2005, 04:30 AM
mangesh_yadav Can you give more details.... 03-24-2005, 04:48 AM
aijihz like how to compare 2 dates:... 03-24-2005, 05:05 AM
mangesh_yadav Yes, you can.... 03-24-2005, 06:49 AM
aijihz Thanks a lot.... :) 03-27-2005, 09:50 PM
  1. #1
    Registered User
    Join Date
    03-09-2005
    Posts
    39

    How can i compare dates?

    hi all,

    I want to compare dates in a If statement:

    The logic is :

    E.g:

    If(date1=date2,positive action,negative action)

  2. #2
    Forum Contributor
    Join Date
    06-10-2004
    Location
    India
    Posts
    1,066
    Can you give more details. maybe an example

    Mangesh

  3. #3
    Registered User
    Join Date
    03-09-2005
    Posts
    39
    like how to compare 2 dates:

    date in A1 cell=2/2/2005
    date in B1 cell=2/2/2005

    can i compare them this way:

    If a1=b1

  4. #4
    Forum Contributor
    Join Date
    06-10-2004
    Location
    India
    Posts
    1,066
    Yes, you can.
    =If(a1=b1,"match","no match")

    or if you want to check if it matches todays date, then
    =If(a1=TODAY(),"match","no match")

    or some arbitrary date like 15 april 2005
    =If(a1=DATE(2005,4,15),"match","no match")


    - Mangesh

  5. #5
    Registered User
    Join Date
    03-09-2005
    Posts
    39
    Thanks a lot....

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1