Simple Time Display
This guide shows you how to display the current date and time in your VRChat ChatBox using VRCOSC's ChatBox animation system.
What You'll Create
When you finish this setup, the ChatBox will automatically show the current date and time in your VRChat ChatBox, updating continuously.
Setup Steps
1. Enable the DateTime Module
- Click the Module tab in VRCOSC
- Find DateTime in the module list
- Enable it by checking the box or toggle switch
What this does: The DateTime module exposes states, events, and variables about the current date and time to the ChatBox animation system. This allows the ChatBox to display time information.
2. Create and Configure a Clip
- Click the ChatBox tab
- On the timeline, right-click in an empty area
- Select Create Clip
- Left-click the newly created clip to select it
- Click the Edit button at the top
What's a clip? A clip is a single message/display element in the ChatBox animation system. You can have multiple clips that show different information at different times.
3. Set Up the DateTime State
- In the clip editor window, click DateTime in the left sidebar (this shows states exposed by the DateTime module)
- Find the DateTime state
- Enable it by checking the box
What this does: This binds the clip to the "DateTime" state. The clip will be selected for your VRChat ChatBox and display the current time.
4. Test Your Setup
- Go to the Run tab
- Click the green Run button
- Make sure VRChat is running
Expected result: You should see your clip appear in the VRChat ChatBox showing the current date and time.
Customization
You can customize how the date and time are displayed:
- Go back to the ChatBox tab
- Select your DateTime clip and click Edit
- Click the cog wheel (⚙️) next to the Now variable
- Change the format string to customize the display
Common Format Changes
- 12-hour format instead of 24-hour: Change
HHtohh - Add AM/PM indicator: Add
ttto your format string - Date only: Use
dd/MM/yyyyorMM/dd/yyyy - Time only: Use
HH:mm:ssorhh:mm:ss tt
Example formats:
HH:mm:ss→ 14:30:45 (24-hour)hh:mm:ss tt→ 02:30:45 PM (12-hour with AM/PM)dd/MM/yyyy HH:mm→ 23/05/2026 14:30
Advanced Formatting
For more formatting options, see Microsoft's Custom Date and Time Format Strings documentation. Scroll down to the format table where you can use any Format Specifier listed.
Troubleshooting
- Nothing appears in VRChat: Make sure VRCOSC is running, VRChat is open, and you pressed the Run button