SAP Knowledge Base Article - Preview

1831775 - How to convert string date and time values with AM/PM to 24hr datetime format? - Data Services


  • Convert a string date and time containing AM and PM to 24hr datetime format
  • Input value is a string such as '3/4/2018 12:00:00 AM' that needs to be converted to datetime datatype
  • Database datetime datatype does not support AM/PM
  • to_date function does not have conversion code for AM\PM for 12 hour date format



SAP Data Services


SAP Data Services 4.0


KBA , EIM-DS-EXE , Job Execution , EIM-DS , Data Services , How To

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.