Here is an easy way to convert System Date and Time using built-in functions in just one line of code. Enjoy!
d wwTime s 6 0
d wwDate s 8 0
/free
// Date
wwDate = %Uns(%Char(%Date:*ISO0)
// Time
wwTime = %Uns(%Char(%Time():*ISO0)
or
wwTime = %Uns(%Char(%
Time():*HMS0)
/end-free
==================================
MORE INFORMATION ON THIS TOPIC
==================================
The Best Web Links: tips, tutorials and more.
Visit the ITKnowledge Exchange and get answers to your developing questions fast.
Ask the Experts yourself: Our application development gurus are waiting to answer your programming questions.