[Javascript] chopping up a string?

Walter Torres walter at torres.ws
Mon Nov 17 10:04:56 CST 2003


> -----Original Message-----
> From: javascript-bounces at LaTech.edu
> [mailto:javascript-bounces at LaTech.edu]On Behalf Of Hassan Schroeder
> Sent: Monday, November 17, 2003 9:41 AM
> To: [JavaScript List]
> Subject: Re: [Javascript] chopping up a string?

> Is the audience for this function highly technical -- will /always/
> pad single-digit date values with 0? And all from parts of the world
> that format dates dd/mm/yy?
>
> What's `11`? November, the first of January, the 11th of this month?

Hassan, I agree.

That is why I always use dynamic pick lists for date selection. [List of
"dates" change depending on which month is selected, and which year for Leap
Year cases]

No mistakes or misunderstood dates!

But, I was just answering his question.

I'm of the mind to answer a question as best I can, I rarely offer "other
ways of doing it".

And I really can't stand it when I get replies of... "Why are you doing that
way? Just do it this way..." or even better... "Just tell your users to
[pick your verb]"

anyway, my solution for dates has been pick lists. No fuss, no muss.

Walter





More information about the Javascript mailing list