Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › Programming › Visual Basic Programming › [Help]Now Date/Now Day

Question[Help]Now Date/Now Day

Posts 1–13 of 13 · Page 1 of 1
Shark23
Shark23
[Solved]Now Date/Now Day
Right now in VB I'm using a "DateInterval.Month" procedure and a "DateInterval.Day" procedure. Right now this is saying that it is February 4th. Is there a way to change that? I need the current date.
#1 · edited 16y ago · 16y ago
Bombsaway707
Bombsaway707
If you trying to find the date just do Today.
Ex: Label1.text = today
#2 · 16y ago
Shark23
Shark23
I need to check whether textbox1 = current month and textbox2 = current day.
#3 · 16y ago
mnpeepno2
mnpeepno2
if u want the time with the date it's:
Code:
now
I KNOW AMAZING RIGHT?
#4 · 16y ago
Shark23
Shark23
Uhhhh, no I don't need the time. Like I said before, I need to check whether or not TextBox1.Text = Current Month and TextBox2.Text = Current Day.
#5 · 16y ago
mnpeepno2
mnpeepno2
this should help
Working with dates and times in VB.NET
#6 · 16y ago
NextGen1
NextGen1
First

Namespace
[php]
Imports System.Globalization
Imports System.Threading
[/php]

Form Load Event or whatever triggers the event
I used a button

[php]
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim Info As CultureInfo = Thread.CurrentThread.CurrentCulture
Dim Curmonth As String = Info.DateTimeFormat.GetMonthName(DateTime.Now.Mont h)
Dim Curday As String = Info.DateTimeFormat.GetDayName(DateTime.Now.Day)
TextBox1.Text = Curmonth
TextBox2.Text = Curday
End sub
[/php]

My code will get the current month and current day and display them into separate text boxes.

Have fun




#7 · 16y ago
Shark23
Shark23
Still not working. Alright, so this program has 3 textboxes and a button. Textbox1 is for the month. Textbox2 is for the day. Textbox3 is for your name. I'm trying to input the month number(1-12) in textbox1 and the day number(1-31) in textbox2. If textbox1's text is the current month and textbox2's text is the current day, the messagebox displays a message. Right now I have:

Code:
        Dim Info As CultureInfo = Thread.CurrentThread.CurrentCulture
        Dim Curmonth As String = Info.DateTimeFormat.GetMonthName(DateTime.Now.Month)
        Dim Curday As String = Info.DateTimeFormat.GetDayName(DateTime.Now.Day)
        Dim strMonth As String
        Dim strDay As String
        Dim strName As String

        strName = txtName.Text
        strMonth = txtMonth.Text
        strDay = txtDay.Text

        If Curmonth = strMonth And Curday = strDay Then
            'Current date equals entered date
            MessageBox.Show("'Message here'")
        Else
            'Current date does not equal entered date
            MessageBox.Show("'Message here'")
        End If
    End Sub
#8 · 16y ago
NextGen1
NextGen1
Slight error in my code

I apologize

[php]
Dim Info As CultureInfo = Thread.CurrentThread.CurrentCulture
Dim Curmonth As String = Info.DateTimeFormat.GetMonthName(DateTime.Now.Mont h)
Dim Curday As String = Info.DateTimeFormat.GetDayName(DateTime.Today.DayO fWeek)
TextBox1.Text = Curmonth
TextBox2.Text = Curday
[/php]



This should work

Your code should be

[php]
Dim Info As CultureInfo = Thread.CurrentThread.CurrentCulture
Dim Curmonth As String = Info.DateTimeFormat.GetMonthName(DateTime.Now.Mont h)
Dim Curday As String = Info.DateTimeFormat.GetDayName(DateTime.Today.DayO fWeek)
Dim strMonth As String
Dim strDay As String
Dim strName As String

strName = TextBox1.Text
strMonth = TextBox2.Text
strDay = TextBox3.Text

If Curmonth = strMonth And Curday = strDay Then
'Current date equals entered date
MessageBox.Show("'Message here'")
Else
'Current date does not equal entered date
MessageBox.Show("'Message here'")
End If
End Sub
[/php]



#9 · edited 16y ago · 16y ago
Shark23
Shark23
Quote Originally Posted by NextGen1 View Post
Slight error in my code

I apologize

[php]
Dim Info As CultureInfo = Thread.CurrentThread.CurrentCulture
Dim Curmonth As String = Info.DateTimeFormat.GetMonthName(DateTime.Now.Mont h)
Dim Curday As String = Info.DateTimeFormat.GetDayName(DateTime.Today.DayO fWeek)
TextBox1.Text = Curmonth
TextBox2.Text = Curday
[/php]



This should work

Your code should be

[php]
Dim Info As CultureInfo = Thread.CurrentThread.CurrentCulture
Dim Curmonth As String = Info.DateTimeFormat.GetMonthName(DateTime.Now.Mont h)
Dim Curday As String = Info.DateTimeFormat.GetDayName(DateTime.Today.DayO fWeek)
Dim strMonth As String
Dim strDay As String
Dim strName As String

strName = TextBox1.Text
strMonth = TextBox2.Text
strDay = TextBox3.Text

If Curmonth = strMonth And Curday = strDay Then
'Current date equals entered date
MessageBox.Show("'Message here'")
Else
'Current date does not equal entered date
MessageBox.Show("'Message here'")
End If
End Sub
[/php]



Almost perfect. I need the day of the month(1-31) not the day of the week(Sunday-Saturday) but thanks a lot! This was really frustrating. Thanks!

EDIT: Got it working perfectly now!
#10 · edited 16y ago · 16y ago
NextGen1
NextGen1
Good to hear it was resolved
#11 · 16y ago
Sixx93
Sixx93
use the datatimepicker utility
#12 · 16y ago
NextGen1
NextGen1
Quote Originally Posted by Sixx93 View Post
use the datatimepicker utility
Issue already resolved, and using components in a situation where it is not needed is bad coding tactics
#13 · 16y ago
Posts 1–13 of 13 · Page 1 of 1

Post a Reply

Similar Threads

  • Help nowBy Melikepie in Combat Arms Help
    0Last post 17y ago
  • Okay I need help now lolBy falzarex in C++/C Programming
    6Last post 16y ago
  • Need help now!By RUNmyHACK in Combat Arms EU Discussions
    19Last post 16y ago
  • Server Busy HELP NOW PLEASE?By SharcBate1 in Combat Arms Help
    3Last post 16y ago

Tags for this Thread

None