I am trying to create a variation of the datenum(now) command with a twist, the code must output the time as if I typed it at 7am.
I am proceding the following way,
datestr(round(datenum(now)), 'ddd dd/mmm HH:MM PM ')
with output
ans = Thu 11/Oct 12:00 AM
I want a variation of this code that outputs the folliowing for whenever I type it
ans = Thu 11/Oct 7:00 AM
Output the current day and month of the input, but the time must always be 7am of the current day
Can you please help?
Best Answer