User bio
404 bio not found
Member since Aug 29, 2019
Posts:
Anusri has not published any posts yet.
Replies:
Anusri Bairi · Mar 30, 2022 go to post

Hi,

Try below command, this will give you the output in YYYYMMDDHHMM  format.  

w $extract($tr($zstrip("2022-03-29T15:10:00+0100","*p"),"TZ", ""),1,12)

Thanks,

Anusri

Anusri Bairi · Jan 27, 2022 go to post

Hi,

Please try below, you should be able to read all json content. This works !

set oref = ##class(%Stream.GlobalCharacter).%New() do oref.Write(newMsg) // where newMsg contains JSON stream$$$LOGINFO("JSON = " _oref.Read())

You can also read only certain number of characters from json, for more understanding please go through below intersystems documentation Reading and Writing Stream Data

Thanks,

Anusri

Anusri Bairi · Jan 27, 2022 go to post

Hello,

Please try below, this should help you !

write $zstrip($zdatetime($horolog, 3), "*pw") 

Output :  20220127113314

write $zstrip($zdatetime($horolog, 3), "*p") 

Output :  20220127113314

You can use either of the above two , both works !

Thanks,

Anusri

Certifications & Credly badges:
Anusri has no Certifications & Credly badges yet.
Followers:
Anusri has no followers yet.
Following:
Anusri has not followed anybody yet.