Skip to content

Instantly share code, notes, and snippets.

@njames
Last active December 17, 2015 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save njames/5625969 to your computer and use it in GitHub Desktop.
Save njames/5625969 to your computer and use it in GitHub Desktop.
REPORT z_hello_datetime.
data:
dt type REF TO zcl_datetime
, fs type string
, ts type timestamp
.
get time STAMP FIELD ts.
create OBJECT dt
EXPORTING timezone = sy-zonlo
timestamp = ts.
fs = dt->format( 'd M Y H:m' ).
WRITE: / fs. "22 May 2013 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment