Thanks...that works, although not sure why. I can see that var now is a date....as store.saveTiddler expects..........but why is var now formatted into the right format, when the code formated var now as var when..... seems to me the formated date is in when,....not now!!!
Anyway, back on the road...now just have to get it to write the note to mysql....and then later have php build the sorted notes into a text, stored into pureStore format!!!! Phew!!! Thanks Skye On 15 dez, 17:12, Eric Shulman <[email protected]> wrote: > > var when=new Date().formatString('YYYY0MM0DD-0hh:0mm:0ss'); > ... > > store.saveTiddler(title,title,text,who,when,etiquetas,null); > ... > > TypeError: b.convertToYYYYMMDDHHMM is not a function" > > Why is this happening....why doesnt my date format work in my code?? > > The 'when' variable you define is a date, **formatted as text**. But > the saveTiddler() function expects a Date **object**. Try these > changes: > > ------------ > var now=new Date() > var when=now.formatString('YYYY0MM0DD-0hh:0mm:0ss'); > ... > store.saveTiddler(title,title,text,who,now,etiquetas,null); > ------------ > > enjoy, > -e > Eric Shulman > TiddlyTools / ELS Design Studios > > ---- > TiddlyTools needs YOUR financial support... > Help ME to continue to help YOU... > make a generous donation today: > http://www.TiddlyTools.com/#Donations > > Professional TiddlyWiki Consulting Services... > Analysis, Design, and Custom Solutions: > http://www.TiddlyTools.com/#Contact -- 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.

