SOLVED
Date Format in Server
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Madihah_29
7 - Meteor
‎02-28-2024
09:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi guys,
Does anyone know how to change the format from mm/dd/yyyy to dd/mm/yyyy for the filter using analytic apps date in Alteryx Gallery?
Solved! Go to Solution.
2 REPLIES 2
Spicionly
5 - Atom
‎03-09-2024
04:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
To convert the date format from MM/DD/YYYY to a date format in Alteryx, you can use the "DateTimeParse" function. Here are the steps: Drag and drop a "DateTimeParse" tool onto your workflow canvas. Connect the tool to your data source.
19 - Altair
‎03-11-2024
08:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @Madihah_29
The answer is you can't unless you want to risk breaking the ui. The code that returns the formatted date is this
getFormattedDate = function (date) {
if (!(date instanceof Date)) {
throw new TypeError("The date must be an instance of Date.");
}
return [(date.getMonth() + 1), "/",
(date.getDate()), "/",
(date.getFullYear())].join("");
};
Dan
