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

  • SEARCH
  • Home
  • 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 8280749
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T09:47:38+00:00 2026-06-08T09:47:38+00:00

How to find one text field value is within past 60 day excluding current

  • 0

How to find one text field value is within past 60 day excluding current date.

For example if I enter value in text field is 20-July-2012 using Date Picker.Then I click submit,it’ll check that specific is date is within 60 days or not. If the values are entered which is before 60 days an alert message is displayed. The values are retrieved from api.

  • 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-08T09:47:41+00:00Added an answer on June 8, 2026 at 9:47 am
    NSDate *today = [NSDate date];
    
    NSTimeInterval dateTime;
    if ([pickerDate isEqualToDate:today])   //pickerDate is a NSDate
    {
         NSLog (@"Dates are equal");
    }
    dateTime = ([pickerDate timeIntervalSinceDate:today] / 86400);  
    if(dateTime < 0) //Check if visit date is a past date, dateTime returns - val
    {
         NSLog (@"Past Date");
    }
    else 
    {   
         NSLog (@"Future Date");
    }
    

    Change the value of 86400 to suit your query.In this case, it is the number of seconds we want to compare.

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

Sidebar

Related Questions

string one = find; combobox1.text = one; I want to use one i.e string
Here's an easy one straight from the text book I can't seem to find.
I know zero javascript, and have one simple task: Find all text in the
I cant find one way to get this value (comment) into json using javascript.
In my application, I want to create a dialog box with one text field,
i need to just find one section of the path to be used as
There are many questions like this but I can't find one that seems to
I've searched for days but couldn't find one solid solution to get the selection
I realise there might be similar questions but I couldn't find one that was
I've read the related questions but I cannot find one that suits my problem(or

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.