--
You received this message because you are subscribed to the Google Groups "FormEmailer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to formemailer...@googlegroups.com.
To post to this group, send email to forme...@googlegroups.com.
Visit this group at http://groups.google.com/group/formemailer.
For more options, visit https://groups.google.com/d/optout.
function createDefaultEmail_(idx) {
var email = 'us...@example.com';
try { email = Session.getEffectiveUser().getEmail(); } catch(suppress) {}
var body = T.defaultBody+'<br>\n<b>'+c.questions[0]+': </b>#'+c.questions[0]+'|d/M/yyyy H:mm:ss#<br>\n';
for( var i = 1; i < c.questions.length; i++ )
body += '<b>'+c.questions[i]+': </b>#'+c.questions[i]+'#<br>\n';
//sender,replyTo, to, cc,bcc, subject, body, html
var v = [NAME, '', email, '', '', T.defaultSubject, body, 'true'];
for( var i in ef )
s[ef[i]+idx] = v[i];
}
Hi John,Yes, there's no need to change the code to do that. It's a built-in feature. Please read here:This 1869 thing is just how dates work in spreadsheets. There's no pure Time value, it's always a date, it's just formatted differently to hide this 1869 date from you. If you run any date function referencing this cell you'll see what it actually is. Since we're on the topic, it's important to notice that dates are actually just numbers with a different formatting. In spreadsheets the underlying number value of a date is the number of days since the epoch (1/1/1970 00:00 GMT) and the hours are decimals.Using FormEmailer formatting feature you can achieve the same thing you have on the spreadsheet, which is to hide the date part from your "datetime" cell.Regards,
Henrique Abreu