Hi All

A quick question to resolve some confusion about date formats.

If I use Erics QuickNotePlugin like this - <<quickNote tiddler:"Skye-"
dateformat:"YYYY0MM0DD-0hh:0mm:0ss" taglist:"Nota">>......the note is
created with the title in the format specified...as you would expect
from Eric's work!!!

Now when I use almost the same date format in a very similar bit of
coding part of a similar input form, like -
<input type="button" value="submit" onclick="
this.form.materia.value=config.options.txtMateria;
this.form.topico.value=config.options.txtTopico;
this.form.subtopico.value=config.options.txtSubTopico;
this.form.nota.value=config.options.txtNota;
var text=this.form.comment.value;
var when=new Date().formatString('YYYY0MM0DD-0hh:0mm:0ss');
this.form.when.value=when;
var who=config.options.txtUserName;
this.form.who.value=who;
var title=who+'-'+when;
this.form.title.value=title;
var etiquetas='comment '+who;
store.saveTiddler(title,title,text,who,when,etiquetas,null);
autoSave();
story.displayTiddler(null,title);
">

....the tiddler is not created, and in fact the TW freezes up with a
message saying it cant save the tiddler because -
"Erro ao guardar tiddler 'Skye-20111215-16:47:03':
TypeError: b.convertToYYYYMMDDHHMM is not a function"

Why is this happening....why doesnt my date format work in my code??

I´d rather use my code (than Erics) as I plan to have it send the
comment to a MySQL database and generate a message by email.....blah.
blah.... and would rather not mess around too much with Erics work
(mainly cause I´d most likely just break it!!!!!)

Thanks
Skye

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" 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/tiddlywiki?hl=en.

Reply via email to