@sankhyalabs/core-docs 0.0.0-hotfix-ga-5989134.0 → 0.0.0-hotfix-ga-KB-6012297.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/classes/DateUtils.md +35 -0
- package/package.json +1 -1
package/classes/DateUtils.md
CHANGED
@@ -78,6 +78,41 @@ src/utils/DateUtils.ts:15
|
|
78
78
|
|
79
79
|
***
|
80
80
|
|
81
|
+
### formatCustomDate()
|
82
|
+
|
83
|
+
> `static` **formatCustomDate**(`date`): `string`
|
84
|
+
|
85
|
+
Converte data para uma string no formato customizado d[d]/m[m]/y[yy[yyy][yyyy]] H[HH][:[M[MM][:S[SS]]].
|
86
|
+
Este padrão de data corresponde ao utilizado no buildDate do TimeUtils do Sankhya-W.
|
87
|
+
|
88
|
+
#### Parameters
|
89
|
+
|
90
|
+
• **date**: `Date`
|
91
|
+
|
92
|
+
Data a ser convertida.
|
93
|
+
|
94
|
+
#### Returns
|
95
|
+
|
96
|
+
`string`
|
97
|
+
|
98
|
+
- Uma string com a data no formato customizado.
|
99
|
+
|
100
|
+
#### Examples
|
101
|
+
|
102
|
+
```ts
|
103
|
+
Informo: 1998-01-01 00:00:00.0 | Obtenho: 1/1/1998
|
104
|
+
```
|
105
|
+
|
106
|
+
```ts
|
107
|
+
Informo: 2023-12-25 14:30:45 | Obtenho: 25/12/2023 14:30:45
|
108
|
+
```
|
109
|
+
|
110
|
+
#### Source
|
111
|
+
|
112
|
+
src/utils/DateUtils.ts:211
|
113
|
+
|
114
|
+
***
|
115
|
+
|
81
116
|
### formatDate()
|
82
117
|
|
83
118
|
> `static` **formatDate**(`date`, `options`?): `string`
|