Converts date to "YYYYMMDD" character - Written in Progress/Openedge 4GL

/* This function is written en Progress 4GL 9.1C */ /* It receives a date and returns a character containing the date, in format YYYYMMDD */ /* Ezequiel Montoya Saldaña - Lima - Perú - 2015 */ FUNCTION _DateToYYYYMMDD RETURNS CHARACTER (dDate AS DATE). RETURN string(YEAR(dDate),"9999") + string(MONTH(dDate),"99") + string(DAY(dDate),"99"). END FUNCTION.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.