DateTransformer
A transformer that can transform Date to an ISO string and back.
Import:
import { DateTransformer } from 'obsidian-dev-utils/transformers/date-transformer';Signature:
export class DateTransformer extends TypedTransformer<Date, string>Extends: TypedTransformer<Date, string>
Methods
| Method | Returns | Description |
|---|---|---|
| canTransform(value) | value is Date | Determines if the value is a Date. |
| canTransform(value, key) | value is Date | Determines if the transformer can transform the given value. (Inherited from TypedTransformer) |
| restoreValue(transformedValue) | Date | Restores the value from a string. |
| restoreValue(transformedValue, key) | Date | Restores the given value. (Inherited from TypedTransformer) |
| transformValue(value) | string | Transforms the value to a string. |
| transformValue(value, key) | string | Transforms the given value. (Inherited from TypedTransformer) |