You are viewing limited content. For full access, please sign in.

Question

Question

Regular Expression for Date Help

asked on April 29, 2014

We have a Laserfiche Form process that is saving to the repository with the {/dataset/_submission_time} at the beginning of the Document Name. This token appends the time onto the end of the date like so: 3/11/2014 1:09:22 AM. I need help making a regular expression that just takes the date. Normally I would do \d/\d\d/\d\d\d\d, but the month and day could be single or double digits. How do I account for that?

0 0

Answer

APPROVED ANSWER SELECTED ANSWER
replied on April 29, 2014

You can use something like this

 

\d\d?/\d\d?/\d\d\d\d

0 0

Replies

replied on April 29, 2014 Show version history

Is that a token, or can you pass it in as a token? You can use token formatting to do what you're after, and can add consistency.

 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.