Langsung ke konten utama

Postingan

Menampilkan postingan dari Oktober, 2018

AX X++ str2Date

From time to time, a user will need to pull a date from a string. More often than not it is from an XML or from some other location. In order to actually use this date passed, it needs to be of data type 'date' so it can be written to fields, used in queries etc.  To do this, a user can use the 'str2Date' function. The str2Date function takes two parameters: datestring = The date in string format. It can be separated by either a dash ('-') or slash ('/') sequence = A three number combo using 1, 2, and 3 where 1 = day, 2 = month, and 3 = year. (e.g. 231 would be MM-YYY-DD, and 321 would be YYYY-MM-YY) If the sequence doesn't match the string or has an error, a '0' will result. Note that its very important to distinguish between day and month as an invalid month (>12) will result in a 0 and if both are <13, the date can translate totally wrong. I've detailed out the results of various scenarios below. Should be pretty self explan

HTML Table

An HTML table is defined with the  <table>  tag. Each table row is defined with the  <tr>  tag. A table header is defined with the  <th>  tag. By default, table headings are bold and centered. A table data/cell is defined with the  <td>  tag. < table  style ="width:100%" >    < tr >      < th > Firstname < /th >      < th > Lastname < /th >        < th > Age < /th >    < /tr >    < tr >      < td > Jill < /td >      < td > Smith < /td >        < td > 50 < /td >    < /tr >    < tr >      < td > Eve < /td >      < td > Jackson < /td >        < td > 94 < /td >    < /tr > < /table > HTML Table - Adding a Border If you do not specify a border for the table, it will be displayed without borders. A border is set using the CSS  border  property: table, th, td  {     border :  1px solid bla