For date fields, you can also specify whether the date should be past or future as used above.
对于日期字段,您还可以指定日期应当是过去还是将来,正如上面使用的。
Gets a value that indicates whether the date represented by an instance of this class is a either Saturday or Sunday.
获取一个值,该值指示由此类的实例表示的日期是否是星期六或星期日。
I even have a code that calculates whether the date and time is in the past or the future in order to display an "UPCOMING" tag on those events that are not yet past.
我甚至有一个代码,计算日期和时间是否在过去或将来,为了显示“即将到来”的标签,在这些活动中,还没有过去。
If you focus on some of the minutia of a site like this, you know, it's useful to be able to jump to a particular date whether in the future or in the past.
如果你关注像这样一个网站的一些细节,你会发现,若能跳转到,不论过去还是将来的一个特定日期,那将是很有用的。
应用推荐