Input mask for date functions - VisualCron - Forum

Community forum

Welcome Guest! To enable all features please Login or Register.



Go to last post Go to first unread
Offline Jon Tofte-Hansen  
#1 Posted : Tuesday, November 5, 2019 9:48:40 AM(UTC)
Jon Tofte-Hansen

Rank: Paid support

Joined: 2/4/2016(UTC)
Posts: 108
Location: Hovedstaden, Copenhagen

Thanks: 8 times
Was thanked: 17 time(s) in 13 post(s)
When using a date function (in Variables) an output mask exists. Eg. {DATEFORMAT(yyyy-MM-dd HH:mm)}. This is great as the dateformat of the OS users involved can vary.

But when using date input there is no mask option. Eg. {DATE(DaysBetween|2019-11-05|2019-12-05)}.

To enforce independance of random OS user date format settings I propose input mask options in date functions. The example above could be overloaded so this was a possibility: {DATE(DaysBetween|2019-11-05|2019-12-05|yyyy-MM-dd|yyyy-MM-dd)} or only one mask for both inputs.

This would also render cumbersome substringing of arbitrary date input formats (eg. input filenames) superfluous.

Thank you.

Edited by user Tuesday, November 5, 2019 9:52:46 AM(UTC)  | Reason: Not specified

Offline thomas  
#2 Posted : Tuesday, November 5, 2019 11:11:35 AM(UTC)

Rank: Paid support

Joined: 12/10/2013(UTC)
Posts: 471

Thanks: 22 times
Was thanked: 181 time(s) in 137 post(s)
I second this feature request. In general, code should work regardless of the users OS settings. So if I post a snippet of code on the forum, someone should be able to just run that code. Now they potentially have to change the dateformat in the code to make it work.
Users browsing this topic
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Scroll to Top