79162305

Date: 2024-11-06 11:06:58
Score: 0.5
Natty:
Report link

As Tom Gobich said here : https://adocasts.com/lessons/validating-form-data-with-vinejs

You can use the transform method like this.

import { DateTime } from 'luxon'

const validator = vine.compile(
  vine.object({
    startDate: vine.date().transform((date) => DateTime.fromJSDate(date))
  })
)
Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Yann Menoud