B
BIG Chris
Hi,
In VBA I have a problem in comparing two "dates" because:
tsk.Start gives you a date as "01/06/2004 08:00:00", which is fine.
But
tsk.GetField(pjTaskStart) gives you a date as "Tue 01/06/04".
I can't format this using the Format or FormatDateTime functions because it
isn't recognised as a date. I don't think I can simply chop one end off the
string and then format it because I suspect the format may be different
depending on the user's locale settings - but I can't seem to find out any
more info about this anywhere.
NB. Tsk is assigned to a MS project task
I did have the crazy idea of changing the date format via the
Tools/Options/View dialog; but that's no good as this is set as standard. If
there is anyway in code to temporarily change this ( & change it back
afterwards ) then that might be a dirty solution ... but it's better than
nothing !! Though if someone has a better idea, I would be grateful ( I've
tried using Cdate but that doesn't seem to work either ).
Any Ideas ?
Cheers,
BIG Chris.
In VBA I have a problem in comparing two "dates" because:
tsk.Start gives you a date as "01/06/2004 08:00:00", which is fine.
But
tsk.GetField(pjTaskStart) gives you a date as "Tue 01/06/04".
I can't format this using the Format or FormatDateTime functions because it
isn't recognised as a date. I don't think I can simply chop one end off the
string and then format it because I suspect the format may be different
depending on the user's locale settings - but I can't seem to find out any
more info about this anywhere.
NB. Tsk is assigned to a MS project task
I did have the crazy idea of changing the date format via the
Tools/Options/View dialog; but that's no good as this is set as standard. If
there is anyway in code to temporarily change this ( & change it back
afterwards ) then that might be a dirty solution ... but it's better than
nothing !! Though if someone has a better idea, I would be grateful ( I've
tried using Cdate but that doesn't seem to work either ).
Any Ideas ?
Cheers,
BIG Chris.