Jump to content
Sign in to follow this  
diogom

regularexpressionvalidator hora

Recommended Posts

diogom

olá

Alguem sabe qual a expressão para o regularexpressionvalidator da hora

cmp

Share this post


Link to post
Share on other sites
renafi

Podias mostrar era como querias o formato da hora, mas vou imaginar que seja HH:MI:SS

Regular expression: [012]\d:[0-5]\d:[0-5]\d

Atenção que não experimentei, mas é uma coisa parecida.


Oracle Certified Professional - AdministraçãoOracle Certified Professional - Pl/sqlMCPD - Microsoft Certified Professional DeveloperMCTS - Microsoft Certified Technology Specialist

Share this post


Link to post
Share on other sites
pikax

(0?[1-9]|1[012])/([012]?[1-9]|[123]0|31)/([123][0-9])?[0-9][0-9]

ve se este serve


Por muito mais que que estude só aprendo uma coisa, que ainda tenho muita coisa para aprender.

A beleza de um código está em decompor problemas complexos em pequenos blocos simples.

"learn how to do it manually first, then use the wizzy tool to save time."

"Kill the baby, don't be afraid of starting all over again. Fail soon, learn fast."

Share this post


Link to post
Share on other sites
diogom

(0?[1-9]|1[012])/([012]?[1-9]|[123]0|31)/([123][0-9])?[0-9][0-9]

ve se este serve

Era só para a data e a hora.

pús este

^(20|21|22|23|[01]\d|\d)(([:][0-5]\d){1,2})$

Obrigado :thumbsup:

Edited by diogom

Share this post


Link to post
Share on other sites
pikax

li mal, desculpa


Por muito mais que que estude só aprendo uma coisa, que ainda tenho muita coisa para aprender.

A beleza de um código está em decompor problemas complexos em pequenos blocos simples.

"learn how to do it manually first, then use the wizzy tool to save time."

"Kill the baby, don't be afraid of starting all over again. Fail soon, learn fast."

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.