Results 1 to 3 of 3

Thread: Compare date to a list of dates?

Threaded View

  1. #1

    Thread Starter
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Compare date to a list of dates?

    wondering if there is an easy way to do this..

    I have a list of dates (like 3 or 4) as strings.. I need to check if currDate is == to any of them

    If (currDate=="02/13/2016" || currDate=="04/12/2016" etc etc
    I could split and loop... but seems eh

    edit... yes they are strings... so... Date.parse?
    edit.. no wait.. Date.parse returns a number.. so no lol
    Last edited by Static; Feb 11th, 2016 at 01:04 PM.
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

Posting Permissions

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



Click Here to Expand Forum to Full Width