MATLAB: Current date and time date time I would like to view the time of the day and date in the following format example (21/06/16-11:32) in a GUI. What is the command? Best Answer datestr(now, 'dd/mm/yy-HH:MM') Related SolutionsMATLAB: Convert date to datetime t = datetime(DateStrings,'InputFormat','dd/MM/yyyy'); MATLAB: Inserting current date in string sprintf('today is %s',datestr(now())) Related QuestionDate ConversionConverting times from excel file using datetime, datestr, and datenumDate formatsHow to convert string to date
Best Answer