jQuery将月份添加到所选日期 [英] Jquery add month to selected date

查看:172
本文介绍了jQuery将月份添加到所选日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下拉列表中有1个月,3个月,6个月,9个月,1年会员资格

We have 1 Month, 3 Month, 6 Month, 9 Months, 1 Year Membership in dropdown list

我们要尝试做的是,如果用户选择25/06/2012作为开始9个月的成员资格,我们想向他显示他的成员资格何时到期,例如25/03/2013.我们尝试了很多事情,但是日期不正确.

What we where trying to do is if user select 25/06/2012 for start of membership of 9 months, we want to show him when his membership will expire like say 25/03/2013. we tried many things but it give some wrong date.

我们正在使用jquery-ui选择开始成员资格日期

we are using jquery-ui for selection of start membership date

问候 阿尔沙德(Arshad)

Regards Arshad

推荐答案

我喜欢 date.js ,一个小的日期库,对于这种事情很方便.

I like date.js, it's a little date library that's handy for this type of thing.

这篇关于jQuery将月份添加到所选日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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