Jump to content

Cnverter DATA para DayOfWeek

Recommended Posts


Olá Pessoal mais uma vez - ainda não estou maluco mas para la caminho:

Com este código era suposto não saltar a mensagem quando "Teste=5 ou 2, mas ela salta na mesma

Já tentei com VAL; Str; com o Convert e nada

 Dim VerificarDataSorteio As Date = DataDateTimePicker.Value
        Dim Teste As Byte
        Teste = VerificarDataSorteio.DayOfWeek

        If Teste <> 5 Or Teste <> 2 Then
            MsgBox("Está fora da Data do Sorteio" & vbCrLf & "Actualize a data no calendario", MsgBoxStyle.Information)
            Exit Sub
        End If

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

  • 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.