使用javascript设置Outlook会议请求日期 [英] using javascript to set outlook meeting request date

查看:93
本文介绍了使用javascript设置Outlook会议请求日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为我的公司内部网络编写一个脚本,以便从旧的会议室调度系统转换到Outlook。 (这是一个停止差距,直到我们可以让开发人员有时间做一个合适的服务器端解决方案)


用户用于Web界面和会议室AD名称不是人类友好所以我决定使用一些ActiveX在网页上创建一种会议请求链接,所以当你点击它时,它会打开会议申请表,并在表格中填入适当的会议室地址。


我现在遇到的问题是如何使用保存用户所需日期的文本字段数据,这样当他们查看房间的可用性时,正确的日期就已存在。


我知道我需要将my对象的start属性设置为datetime,但是在解析数字的字符串后,如何将它们转换为datetime值javascript?


谢谢,


Jeremy

解决方案

使用 Date()对象并使用setFullYear()方法设置日期。 / blockquote>


使用 Date()对象并使用setFullYear()方法设置日期。



这会产生一个前景会接受的日期吗?


编辑:


我刚试过,它不会接受数据对象或其任何可能的输出。 Outlook接受DateTime和DateTime。数据类型。 Javascript的date()对象不是那种类型,也不输出到那种类型。


哦,我以为你想在JavaScript中使用日期/时间对象。


Outlook采用什么格式?


I have a script for my companies internal network that I am developing to ease the transition away from out old conference room scheduling system to outlook. (this is a stop gap until we can get developer time to do a proper server side solution)

The users are use to a web interface and the conference rooms AD names are not human friendly so I decided to use some ActiveX to create a sort of meeting request link on a web page so when you click on it, it opens up the meeting request form with the proper conference room address already populated in the form.

The problem I have now is how to I use a text field data that holds the users desired date so when they look at availability of the room the proper day will already be there.

I know I need to set the my object''s start property to a datetime, but, after parsing the string for the numerical values, how do I turn them into a datetime value with javascript?

Thanks,

Jeremy

解决方案

Use the Date() object and set the date with the setFullYear() method.


Use the Date() object and set the date with the setFullYear() method.

That will produce a date that outlook will accept?

Edit:

I just tried and it will not accept a data object or any of its possible outputs. Outlook accepts the "DateTime" data type. Javascript''s date() object is not that type, nor does it output to that type.


Oh, I thought you wanted a date/time object within JavaScript.

What format does Outlook take?


这篇关于使用javascript设置Outlook会议请求日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆