Processing Ajax...

Title

Message

Confirm

Confirm

Confirm

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure?

Paste today's date formatted as YYYY-MM-DD_

Description
This script will paste today's date in the following format: YYYY-MM-DD_
Language
C#.net
Minimum Version
Created By
Rax1
Contributors
-
Date Created
Mar 25, 2021
Date Last Modified
Mar 25, 2021

Macro Code

using System;
using System.Collections.Generic;

// The 'text' parameter will contain the text from the:
//   - Current Clipboard when run by HotKey
//   - History Item when run from the History Menu
// The returned string will be:
//   - Placed directly on the Clipboard
//   - Ignored by ClipboardFusion if it is 'null'
public static class ClipboardFusionHelper
{
	public static string ProcessText(string text)
	{
        DateTime dt = DateTime.Now;
		string d = dt.ToString("yyyy-MM-dd_");

        BFS.Clipboard.PasteText(d);
		return d;
	}
}