

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Convert Date Format
Hi Experts,
I want to change format of my Date.It is now in Num format,but I wants to change it into DD/MM/YYYY. How do I get.


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Use the date() function (not to be mistaken by the date#() function).


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
you can try this
date(datefield,'DD/MM/YYYY')
or
date(date#(datefield,'current format'),'DD/MM/YYYY')

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
try below
Format:
LOAD * INLINE [
dateformat
20160705
];
Result:
LOAD *,
Date(Date#(dateformat,'YYYYMMDD'),'MM-DD-YYYY') AS Newdate
Resident Format;

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Rupali,
If you want to change all dateformats and timestamp formats on your app, change this variables on script:
SET DateFormat='DD/MM/YYYY';
SET TimestampFormat='DD/MM/YYYY h:mm:ss[.fff]';
If you enter the date as a number, you will see ever a number, then, when on script get the field use this expression:
Date(YourField) as YourField
Regards!!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
try below:
you can use date function : load Date(fieldname) from filename;
