I am test date entry via a simple form.   For now I enter a date into
a text box, then create a Date object using the text entered and then
display the date (via alert at present).

var dateString = form.dateBox.value;
var myDate = new Date(dateString);
alert(myDate.toString());

My Javascript book suggests that  the dateString in Date(dateString)
is anything that can be parsed by static function Date.parse().  My
book doesn't indicate that a default format can be set.

My preferred entry format is DD/MM/YYYY,  actually I would prefer not
to have to "fix" on a format for the text entry.  Performing some
simple testing It appears that provided the dateString is of a similar
format to the following then all is okay:

MM/DD/YYYY,  DD MMM YYYY (and there simple variations)

Is there a configuration option to set this format?   Or will I need
to write my own date parsing function?  I had a look at the DatePlugin
but could not see options or functions.  I have found
http://www.mattkruse.com/javascript/date/  which has some ideas I was
thinking of using.

Finally is there a way to internationalize the the Month and Day names
on entry?   So if I were to use DD MMM YYYY format, where MMM is the
non English version of the month what would I have to do?   Is there a
way to configure the month/day names some array or other structure?
Ideally I would like to generalize, but in the worst case and
translate the TW on a needs basis.

Hope this make sense.

If I should be asking this in a different forum please let me know?

Regards,

Bricklemacho.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/TiddlyWikiDev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to