Show Changes Show Changes
Edit Edit
Print Print
Recent Changes Recent Changes
Subscriptions Subscriptions
Lost and Found Lost and Found
Find References Find References
Rename Rename
Administration Page Administration Page
Search

History

8/7/2008 8:40:21 PM
207.199.242.145
6/24/2008 2:16:39 AM
84.122.169.61
6/23/2008 5:51:47 AM
76.109.121.2
5/22/2008 12:55:07 AM
-59.41.171.102
5/22/2008 12:54:31 AM
-59.41.171.102
List all versions List all versions

RSS feed for the FlexWiki namespace

Date Time Demo
.
Summary
This topic discusses how, using WikiTalk, dates and times can be manipulated.

What information is available about a DateTime?

DateTime Add(Object span)
Add the specified TimeSpan to this DateTime
DateTime AddDays(Integer delta)
Add the specified number of days to this DateTime
DateTime AddHours(Integer delta)
Add the specified number of hours to this DateTime
DateTime AddMilliseconds(Integer delta)
Add the specified number of milliseconds to this DateTime
DateTime AddMinutes(Integer delta)
Add the specified number of minutes to this DateTime
DateTime AddMonths(Integer delta)
Add the specified number of months to this DateTime
DateTime AddSeconds(Integer delta)
Add the specified number of seconds to this DateTime
DateTime AddYears(Integer delta)
Add the specified number of years to this DateTime
DateTime Date
Answer the Date component of this DateTime
Integer Day
Answer the day of the month represented by this DateTime
String DayOfWeek
Answer the name of the day of the week represented by this DateTime
Integer DayOfYear
Answer the day of the year represented by this DateTime
Object Equals(Object obj)
Determine whether this object is equal to another object
Integer Hour
Answer the hour of the day represented by this DateTime
Integer Millisecond
Answer the millisecond component of the time represented by this DateTime
Integer Minute
Answer the minute of the hourrepresented by this DateTime
Integer Month
Answer the month of the year represented by this DateTime
Integer Second
Answer the seconds component of the time represented by this DateTime
Object SpanBetween(DateTime aDateTime)
Calculate the difference between this DateTime and the supplied DateTime
DateTime Subtract(Object span)
Subtract the given time span from this DateTime
Object TimeOfDay
Answer the time of day represented by this DateTime
DateTime ToLocalTime
Convert this DateTime from universal coordinated time (UTC) to local time
String ToLongDateString
Answer a long-form string representation for the date component of this DateTime
String ToLongTimeString
Answer a long-form string representation for the time component of this DateTime
String ToShortDateString
Answer a short-form string representation for the date component of this DateTime
String ToShortTimeString
Answer a short-form string representation for the time component of this DateTime
DateTime ToUniversalTime
Convert this local DateTime to universal coordinated time (UTC)
Integer Year
Answer the year represented by this DateTime

Examples

 DateTime.Today
9/7/2008 12:00:00 AM
 DateTime.Now
9/7/2008 1:31:23 AM
 DateTime.Today.AddMonths(1)
10/7/2008 12:00:00 AM
 DateTime.Now.Minute
31
 DateTime.Now.ToLongTimeString
1:31:23 AM
 DateTime.Now.ToLongDateString
Sunday, September 07, 2008
 DateTime.Now.ToShortTimeString
1:31 AM
 DateTime.Now.ToShortDateString
9/7/2008

Modified in Last 5 days

 DateTime.Now.SpanBetween(e.LastModified).Days.LessThanOrEqualTo(5)
With
Not logged in. Log in

Welcome to the home of FlexWiki, an experimental collaboration tool, based on WikiWiki.

This is FlexWiki, an open source wiki engine.

This site supports the new NoFollow anti-spam initiative.
Change Style

Recent Topics