date
Verified for current stable LTS
Date Command: Convert Date To Unix Timestamp
Use for convert date to unix timestamp with Date. Exact CLI syntax to convert date to unix timestamp using Date.
When to use this: Use for convert date to unix timestamp with Date.
Command Syntax
date -d "{2018-09-01 00:00}" +%s -u date -d "`{2018-09-01 00:00`}" +%s -u Command Breakdown
-d- Command Option
- Tool-specific option used by this command invocation.
-u- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to convert date to unix timestamp using Date.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Date Command: Display Current Date Default Locale
date +%c Date Command: Display Current Date Utc Iso8601 date -u +%Y-%m-%dT%H:%M:%S%Z Date Command: Display Current Date Unix Timestamp date +%s Date Command: Convert Unix Timestamp To Date date -d @<1473305798> Date Command: Display Current Date Rfc3339 Format date --rfc-3339 s