English 中文(简体)
javascriptdate, googles appscript
原标题:javascript date, googles app script

我是一位方案家,我全心全意地了解了javascript,我只是想在使用javascript的Agoogles手稿中执行一个快速特征。 我的问题是,我正试图从我的权宜之计的形式和形式上抽出时间和时间,我想压缩记本,而时间Beg,则能够把它作为日期和时间,并在我的日历上记账。 如何做到这一点? 将赞赏对数据类型的简短解释。 谢谢。

my code below . . .

function onFormSubmit(e)

      var bookingDate = new Date();
      var endDate = new Date();
      var timeBeg = e.values[5];
      bookingDate = e.values[3];//the textbox array 
      endDate = e.values[4];

cal.createEvent("Busy", new Date(bookingDate + time), new Date(endDate), {location: Nap room });
问题回答

类似情况:

var bookingdatetime = new Date(Date.parse(e.values[3] + " " + e.values[5]));

当然,它需要一个事先验证的宝库,但这却要 s。

顺便说一句, j印的字体是松散的,因此,如果你把价值(第3款)记为“珍贵”,而不是将价值加在一起,那么实际上它只是把 book改成“扼杀”,这很可能是你想要的。





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签