Skip to Content
0
Former Member
Dec 04, 2006 at 03:35 PM

Question on initialize method (p. 255 of WDJ Tutorial #3 )

21 Views

At the top of p. 25 of Tutorial #3, the code block says to add the line:

(a)

wdContext.currentContextElement().setBirthday(new Date(0)));

When I do this, an error message results saying that setBirthday takes a string argument.

So I change the above line to:

b)

wdContext.currentContextElement().setBirthday(new Date(0)));

and the error message goes away.

What's going on here? Is (a) a mistake in the tutorial, or have I overlooked something somewhere ?

Thanks

Dave