Page 29 - Dart Language
P. 29

Chapter 9: Date and time




        Examples



        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.

        Read Date and time online: https://riptutorial.com/dart/topic/3322/date-and-time



































































        https://riptutorial.com/                                                                               24
   24   25   26   27   28   29   30   31   32   33   34