/ Published in: C#

Script that simply returns the current date
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
using System; using VisualWebRipper.Internal.SimpleHtmlParser; using VisualWebRipper; public class Script { //See help for a definition of WrInputTransformationArguments. public static string TransformInput(WrInputTransformationArguments args) { try { return DateTime.Now.ToString("dd/MM/yyyy"); } catch(Exception exp) { //Place error handling here args.WriteDebug(exp.Message); return "Custom script error"; } } }
Comments
