Print Date Stamp to Output Log

I've been staring at the documentation for the Date function and "Codes for date and time", trying to figure out how not to ask the most simple questions, but...I need to ask a simple question.

Can someone give me a simple line of code for printing a string to the Output Log with the current date-time appended?


var d = DOpus.Create.Date();

Thank you!

How does one apply a format string to that?

var d = DOpus.Create.Date();
DOpus.Output(d.Format("D#yyyy-MM-dd T#HH:mm:ss"));