SAP Knowledge Base Article - Preview

2382172 - Datetime() doesn't return valid date when ':' before milliseconds - SAP PB .NET 12.6

Symptom

In PowerBuilder .NET 12.6, Datetime() will return an invalid date when a colon (:) is used before milliseconds.  This is different behavior from PowerBuilder 12.6 classic

For example:
ls_dateTest = '2016-01-01'
ls_dateTest += ' 23:59:59:997'
ldtm_sample = datetime(ls_datetest)

Will return idtm_sample as 1/1/1900 12:00:00 AM

ls_dateTest = '2016-01-01'
ls_dateTest += ' 23:59:59.997'
ldtm_sample = datetime(ls_datetest)

Will return idtm_sample as 1/1/2016 11:59:59 PM

 


Read more...

Environment

  • SAP PowerBuilder 12.6

Product

SAP PowerBuilder 12.6

Keywords

pb,powerbuilder,.net,datetime,milliseconds,date , KBA , BC-SYB-PB , PowerBuilder , Bug Filed

About this page

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

Search for additional results

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