Function get_year::get_year
[−]
[src]
pub fn get_year(date: String) -> String
Get the year from a YYYY-MM-DD Formatted Data
assert_eq!("2010".to_string(), get_year("2010-03-14".to_string()))