CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Thu Jul 27, 2017 1:34 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Sun Apr 16, 2017 9:52 am 
Offline

Joined: Fri Apr 14, 2017 8:29 pm
Posts: 3
Hi,

How to split up datatime variable?
I would like to get day, month, year and time separetly?

Thanks


Top
   
PostPosted: Sun Apr 16, 2017 2:14 pm 
Offline

Joined: Thu Apr 23, 2015 4:51 pm
Posts: 30
I always convert to string and use the standard functions string RIGHT(), DELETE() etc to isolate them.


Top
   
PostPosted: Sun Apr 16, 2017 7:10 pm 
Offline

Joined: Fri Apr 14, 2017 8:29 pm
Posts: 3
Thanks for your answer.


Top
   
PostPosted: Mon Apr 17, 2017 7:32 am 
Offline

Joined: Thu Mar 17, 2016 1:24 pm
Posts: 26
Use CAA DTUTil for Split/Concat DT, Date and TOD.

It seems easy then string functions.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited