Jump to content
Macro Express Forums

Converting Text Variable Date To Date Format


Recommended Posts

Ok... kind of confusing... I have 2 Text Variables that are as such:


T1 = 2/15/06


T2 = 3/23/06



What I want to do is... subtract T1 from T2 to get the amount of days between the two dates. Since these are text string variables... I cannot do math functions. I know the PGM functions can probably do this... but I need to try and find a way to do this without PGM for now. Any ideas?

Link to comment
Share on other sites

I used some ideas from PGM Library (ok... copied a small portion of the code)

That's exactly what the source code version is for - we're glad it was of use to you.


I would post it here... but feel that I would betray PGM to do so...

Quite right!

Link to comment
Share on other sites

I would post it here... but feel that I would betray PGM to do so..

Quite right!

In David, we Trust! :P


Unlike Dash in another post recently... I find hte open source of PGM to be an invaluable tool! This is the first instance where I have had to actually copy a small portion of code... But I will say that being able to read the PGM macros has helped me tremendously! If nothing else... I can see how others write macros and it gives me great ideas for my own.


So, I hereby declare... I, david, being of sound mind and of no affiliation with PGM Macros, announce that PGM Libraries are the greatest thing next to sliced bread and budwieser.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...