Link to home
Start Free TrialLog in
Avatar of badgermike
badgermike

asked on

Pushing A Date To Outlook Via Vbscript

I am tring to create a Vbscript that takes a variable from our accounting software. The date that is coming in from the accounting software, not sure which format, but today reads as: 20100106

I want to convert that to go into outlooks duedate field...I notice the outlook date displays as Wed 1/6/2010

anyone have a formula that will convert the accounting software date to a format that outlook can use?

Avatar of Chris Bottomley
Chris Bottomley
Flag of United Kingdom of Great Britain and Northern Ireland image

Hello badgermike,

I presume:

dateserial(left("20100106",4),mid("20100106", 7, 2),mid("20100106",5,2))

Replacing the string with your variable three times of course

Regards,

chris_bottomley
ASKER CERTIFIED SOLUTION
Avatar of Chris Bottomley
Chris Bottomley
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of badgermike
badgermike

ASKER

You the man!
Easy enough ... second time around.  Would have been easy if I was clever!

Chris