UtilData class
Classe para manipular datas.
Constructors
- UtilData()
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
noSuchMethod(
Invocation invocation ) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other ) → bool -
The equality operator. [...]
inherited
Static Methods
-
dataToUtc(
String data ) → DateTime -
Converte o formato brasileiro
DDMMAAAA
para UTCAAAAMMDD
. -
getAno(
String data ) → int - Retorna o ano da data.
-
getDia(
String data ) → int -
Retorna o mes de uma data. Informar data no formato
DDMMAAAA
-
getMes(
String data ) → int -
Retorna o mes de uma data. Informar data no formato
DDMMAAAA
-
removeCaracteres(
String data ) → String -
Converte o formato brasileiro
DDMMAAAA
para UTCAAAAMMDD
. -
validarData(
String data ) → bool -
Validar se uma data está no formato brasileiro
DDMMAAAA
.