W
W
wocsom2017-09-13 13:29:10
Regular Expressions
wocsom, 2017-09-13 13:29:10

How to set the default date?

Good day. It is necessary that the default date is pulled in the field. Below is a piece of the form that requires the default date (today) to be entered.
f8e15c96b58c4078b8e984eb05d3ab3b.png
In the P_PassStart attribute, unfortunately, I do not know where it is necessary to set the parameter to automatically pull up today's date.
acf0ec2d343549019e6cdaeb7f5d9af4.png

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
dodo512, 2019-05-27
@volego

/^[\w']+(?=,)|[\w']+(?=[^\w\n']+[\w']+\W*$)/gm

P
Pavel K, 2019-05-27
@PavelK

Good evening.
Would you at least bother to retype the text in a normal form =)
Well, for example, like this in haste:

(?:(^[^\W]+),)|([\w]+)(?:[^\w]+)(?:[^\W]+)(?:(?:[^\w]+)?)$
:D
Before "|" - the first condition, and after the second.
Or a slightly more correct one:
Test here: https://regex101.com/r/tDeZL3/2
Adjust there for yourself, for example, apostrophes in my version will not be considered a word.

A
abbccc, 2019-07-26
@abbccc

I quote: "during the passage of this quest, you CAN google, read reference materials and do anything. The passage time is not limited. The main thing is to decide for yourself and do not ask for help from others."

A
Andrew, 2017-09-13
@wocsom

date

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question