Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
mhamurcuoglu
Contributor III
Contributor III

Convert to date time

Hi

How convert nvarchar to date/time format

my format 20141210 1217  I want 10/12/2014 12:17

I m sorry for my English

Thanks

1 Solution

Accepted Solutions
jagan
Luminary Alumni
Luminary Alumni

Hi,

Try like this

=Timestamp(Timestamp#('20141210 1217', 'YYYYMMDD hhmm'), 'DD/MM/YYYY hh:mm')


Hope this helps you.


Regards,

jagan.

View solution in original post

7 Replies
mrossoit
Creator II
Creator II

=date(date#('20141210 1217', 'YYYYMMDD HHmm'), 'DD/MM/YYYY HH.mm')

ankitaag
Partner - Creator III
Partner - Creator III

Hello Mehmet,

Try this:

=Date(Date#('20141210 1217','YYYYMMDD hhmm'),'DD/MM/YYYY hh:mm')

This will give you the result as: 10/12/2014 12:17

Thanks and Regards,

Ankita

rajkumarb
Creator II
Creator II

HI

Use Previous said methods by Massimilliano & Ankita

Go through this Document It Is Very Helpfull

Not applicable

hi,

use date function for this.date(date#('20141210 1217'), 'DD/MM/YYYY HH.mm')

if date function is not working then use makedate()

Date=20141210 1217

date(makedate(left(Date,4),mid(Date,5,2),mid(Date,7,2)),'DD/MM/YYYY') as Date,

maketime(mid(Date,11,2),mid(Date,13,2) as time   ----(hh:mm) formate

Regards

Vimlesh

jagan
Luminary Alumni
Luminary Alumni

Hi,

Try like this

=Timestamp(Timestamp#('20141210 1217', 'YYYYMMDD hhmm'), 'DD/MM/YYYY hh:mm')


Hope this helps you.


Regards,

jagan.

PrashantSangle

Hi,

You can use timestamp() and timestamp#()

try

=timestamp(timestamp#(DatefieldName,'YYYYMMDD hhmm'),'DD/MM/YYYY hh:mm')

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
nagarjuna_kotha
Partner - Specialist II
Partner - Specialist II

Hi,

try this .I Hope this will work.

=Timestamp(Timestamp#('20141210 1217', 'YYYYMMDD hhmm'), 'DD/MM/YYYY hh:mm')

time.PNG


Regards,

Nagarjuna