Skip to content

Commit 6b37b44

Browse files
committed
Merge pull request #24 from ZitRos/master
Date SQL functions note add
2 parents a9de12a + b3b93df commit 6b37b44

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

COSQuickRef.md

+8-6
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,14 @@ A list of some common ObjectScript expressions
5959

6060
| Action | Code |
6161
|--------------------------------------------------|-------------------------------------------------------------|
62-
| Date conversion (external → internal) | `Set variable = $zdh("mm/dd/yyyy")` |
63-
| Date conversion (internal → external) | `Set variable = $zd(internalDate, format)` |
64-
| Time conversion (external → internal) | `Set variable = $zth("hh:mm:ss")` |
65-
| Time conversion (internal → external) | `Set variable = $zt(internalTime, format)` |
66-
| Display current internal date/time string | `Write $horolog` |
67-
| Display UTC date/time string | `Write $ztimestamp` |
62+
| Date conversion (external → internal) | `Set variable = $zdh("mm/dd/yyyy")` |
63+
| Date conversion (internal → external) | `Set variable = $zd(internalDate, format)` |
64+
| Time conversion (external → internal) | `Set variable = $zth("hh:mm:ss")` |
65+
| Time conversion (internal → external) | `Set variable = $zt(internalTime, format)` |
66+
| Display current internal date/time string | `Write $horolog` |
67+
| Display UTC date/time string | `Write $ztimestamp` |
68+
| Get the date relative to other date (any type) | `write $system.SQL.DATEADD("hh", -4, "2015-08-10 19:32:45")`<br>Results `2015-08-10 15:32:45` |
69+
| Get the difference between two dates (any type) | `$system.SQL.DATEDIFF("hh", "63774", "63775,12441")`<br>Results `27` |
6870

6971
## ObjectScript Branching Functions
7072

0 commit comments

Comments
 (0)