Check out example codes for "rust get current date". It will help you in understanding the concepts better.

Code Example 1

use chrono;

fn main() {
    println!("{:?}", chrono::offset::Local::now());
    println!("{:?}", chrono::offset::Utc::now());
}

Learn ReactJs, React Native from akashmittal.com