
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Convert String to Date
HI ,
I have this string and i want to convert it to Date,
Jan, 04
Thanks
- Tags:
- new_to_qlikview


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try
=MonthStart(Date#('Jan, 04','MMM, YY'))


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
How is the date formatted?
I.e.
Is it month year January 2014
or 4th January
Also how do you want it to be formatted?
01/01/2004?
Mark

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you please trying this convert option!
=Date(Date#(Jan, 04,'mmm,DD'),'DD/MM')

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try this ways
=Date(Date#('Jan, 04','MMM, DD'),'MMM, DD')
Regards
Anand

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What format are you trying to convert it into?
May be this:
Date(Date#(DateField, 'MMM, YY'), 'YourDesiredDateFormatHere') as Date

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Anu,
select that field into any object and Number format choose as your wish.
else in code level you need to write
Date#(Start_Date,'MM/DD/YYYY') as Start_Date -->converts string to date format
Date(Date#(Start_Date,'MM/DD/YYYY'),'YYYY/MMM/DD') as Start_Date--> Converts date format data into your convenient date format

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Check this,
Date:
LOAD *,
Mid(Date,1,3) as Month,
'20'&Mid(Date,6,8) as year,
'01/'& Mid(Date,1,3) & '/20'&Mid(Date,6,8) as DateField,
Date#('01/'& Mid(Date,1,3) & '/20'&Mid(Date,6,8),'DD/MM/YYYY') as DateField1
INLINE [
Date
"Jan, 04"
];
can you tell me your exact date format required.
-Hirish
“Aspire to Inspire before we Expire!”

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Anuradha,
Try this,
Date(Date#('Jan, 04','MMM, YY'),'MM/DD/YYYY') if you want date in MM/DD/YYYY format.
You can give other formats according to your requirement.
Regards


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If it is simply a text field, not date formatted already, the syntax above from Lokeshwari works perfectly.
Thanks
LD
