View Single Post
 
Old 01-12-2016, 03:14 AM
PRA007's Avatar
PRA007 PRA007 is offline Windows 7 64bit Office 2010 32bit
Competent Performer
 
Join Date: Dec 2014
Location: Ahmedabad, Gujrat, India
Posts: 145
PRA007 is on a distinguished road
Default Working with Dates in Word VBA

How to work with dates in word VBA?
for example I get date as string in this format

14 Jun 2011

Now I want to know the difference between current date and the date in string.

Is it possible in word vba?

Whay I want to achieve is

Code:
If (CurrDate-strtxt) > 11 then
 some task
If (currDate-strtxt) > 7 then
 some task
Iff (currDate-strtxt)> 3 then
some task
Reply With Quote