从和到日历 [英] From and TO Calendar

查看:157
本文介绍了从和到日历的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有2个日历,第一个是 From ,而seconf是 TO .它们默认设置为今天".

我的问题是,当我从选择日期时,如何自动将修改为该日期.对于前.我从发件人中选择2011年5月30日,所以我想将收件人更改为该日期,即2011年5月30日.

当我提前几个月选择日期时,为什么这对我来说是个问题.我不想去压延并搬到那个月,就像我选择八月一​​样.我需要移动日历的下个月和下一个日历才能到达该月.

在此先感谢您.

I have 2 calendars which the first is From and the seconf is TO. They are set by default to Todays day.

My question is how to when I choose a date from the From it automaticly the To will be amdended to that day. For ex. I choose 30 May 2011 from the From so i want the To to change date to that date 30 may 2011.

Why this is a problem to me when I choose a date couple of month in advance. I don''t want to go to calender and move to that month like when I choose August. I need to move next month and next in the calendar to reach that month.

Thanks in advance.

推荐答案

在不知道您使用哪种语言和框架的情况下,很难猜测您可以使用哪些功能.但是,通常,您需要捕获发件人"项中更改日期的事件.然后从该日历中获取日期并将其应用于到"项目.毫无疑问 MSDN [
Without knowing what language and framework you are using it''s difficult to guess what features are available to you. However, in general you need to capture the event that changes the date in the From item. Then get the date from that calendar and apply it to the To item. No doubt MSDN[^] will have some samples that you can use as starting points.


这篇关于从和到日历的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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