Community forum

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

Notification

Icon
Error

Options
View
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: 104
Denmark
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)
thomas

Rank: Paid support

Joined: 12/10/2013(UTC)
Posts: 450
Norway

Thanks: 22 times
Was thanked: 172 time(s) in 131 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
Guest
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