Results 1 to 2 of 2

Thread: check format date and calculate datediff

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Mar 2005
    Posts
    2,941

    check format date and calculate datediff

    I get with macro a mid string from text file similar:
    my_date=mid(curr_line,3,10) (note var my_date is dimensioned as date)
    the date in txt file can be 15/11/2009 but can be **/**/**** or __/__/____ ecc..

    2 prob:

    1)how to controll when i get the mid string if my_date is a really date?
    2)ho to control if my_date is less than current date?

    if my_date is less than current date calculate diff of day from my_date and current date and return the diff in a var as long

    tks... I hope to be clear

  2. #2

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