title: ABAP JSON Writer using incorrect Date and Time Output?
body: <p><a href="https://www.w3schools.com/js/js_json_datatypes.asp" rel="nofollow noreferrer">Valid JSON data types</a>    do not include dates. So why is SAP adding '-' ?</p>
  
  <pre><code>   data:
          lo_writer type ref to cl_sxml_string_writer,
          lo_xmldoc type ref to if_ixml_document,
          lv_xml type string,
          l_xstring type xstring,
          l_descr_ref type ref to cl_abap_typedescr.
  
     lo_writer = cl_sxml_string_writer=&gt;create( type = if_sxml=&gt;co_xt_json
                                               no_empty_elements  = '' ).
  
     call transformation id source JSON_ROOT_NODE = SY-DATUM
                           result xml lo_writer.
  
     l_xstring  = lo_writer-&gt;get_output( ).
  
     r_json = /AXO/MC_Tools=&gt;xstring2string(  i_xstring     = l_xstring
                                             i_encoding    = 'UTF-8'   ).
  </code></pre>
  
  <p><strong>Result  "YYYY-MM-DD"  instead of "YYYYMMDD"</strong></p>
  
  <p>Why ? 
  How can I fix this ?</p>