>Why do you need a datetime format? lDifferent=(laDir1(x,3)#laDiry,3)) and (laDir1(x,4)#laDiry,4))
I think that should be "OR" instead of "AND".
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)