
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Change date format
Dear all,
How can I change below dateformat into a usable one:
Sep 30 2013 12:58AM
I already have the time covered, but I cannot seem to get the date converted.
- Tags:
- new_to_qlikview
- « Previous Replies
-
- 1
- 2
- Next Replies »
Accepted Solutions

.png)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try,
Date(TimeStamp#(DateField,'MMM DD YYYY hh:mmtt'),'DD/MM/YYYY')
Hope this helps,
Jason


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
try
=Date(Floor(DateField), 'DD/MM/YYYY') AS DATE


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi ,
Go to properties , in Number Tab select which expression u want to convert date format and select Date in Number format settings , from there u will convert date format as u like.
I Hope this will helps.

.png)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You may need to force QV to recognise your field as a date-time first:
Date(Date#(Left(DateField,11),'MMM DD YYYY'),'DD/MM/YYYY')
This will only work if you know DateField is always MMM DD YYYY hh:mm
Hope this helps,
Jason

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, Now I get the date in a useable format. But there is always a next question... to really calculate with this I need the timestamp as well. And if I use this field in the timestamp formula I get strange dates. Any thoughts?

.png)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try,
Date(TimeStamp#(DateField,'MMM DD YYYY hh:mmtt'),'DD/MM/YYYY')
Hope this helps,
Jason

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Jason,
This works if the format is Oct 30 2013 10:09PM, but it goes false if any of the data is in another format, like:
Nov 1 2013 10:09PM or
Oct 30 2013 9:09PM
Any ideas how to tackle this?

.png)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Date(TimeStamp#(DateField,'MMM D YYYY h:mmtt'),'DD/MM/YYYY')

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No, that does not work...

.png)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What does it return?

- « Previous Replies
-
- 1
- 2
- Next Replies »