Date and time

Other topics

Basic usage of DateTime

DateTime now = new DateTime.now();
DateTime berlinWallFell = new DateTime(1989, 11, 9);
DateTime moonLanding = DateTime.parse("1969-07-20 20:18:00");  // 8:18pm

You can find more in depth information here.

Contributors

Topic Id: 3322

Example Ids: 11411

This site is not affiliated with any of the contributors.