how to get todays date without hours in matlab

You can use the dateshift function from MATLAB to get today's date without hours. Here is an example:

main.m
today_date = datetime('today');
today_date_without_time = dateshift(today_date,'start','day');
disp(today_date_without_time);
126 chars
4 lines

This code will output today's date without the time component.

related categories

gistlibby LogSnag