📅 Date Extractor
📐 工作原理與說明
按勾選的日期格式(ISO、斜槓、點號、中文、美式、歐式、英文月份)依次用各自正則取全部匹配;含時間判據為 /[ T]\d{1,2}:\d{2}/,未勾選「含時間」時只去掉時間部分、仍保留日期;所有年月日均做真實日曆校驗(如 2024-02-31 判為無效並列入忽略清單);勾選規範化時把命中串按該格式的規範化函式改寫為 YYYY-MM-DD;勾選去重時以改寫後的串為鍵只保留首次出現;勾選排序時按解析出的 ISO 日期升序排列。輸出條數即結果陣列長度,逐條換行輸出
Recognise and extract date expressions (numeric formats plus English month names such as 15 Jan 2024), then optionally normalise, deduplicate, sort and export them for contract review and timeline building. Relative expressions such as "3 days ago" are not parsed.
提取格式
共找到: 0 個日期
📋 提取結果
請輸入文本...
📚 深度解析:提取日期
💡 常見使用場景
- 從合同/郵件/日誌抽日期:識別多種格式(2024-01-15、2024/1/15、15 Jan 2024)統一列出。
- 整理時間線:把散落日期彙總排序,輔助梳理事件順序。
- 到期提醒預篩:先抽全部日期再計算距今天數。
抽取混合格式日期
文本含「簽約日 2024-01-15,續約 2024/07/15」,工具抽得兩個 ISO 日期並可選歸一為 2024-01-15、2024-07-15,便於後續排序。
❓ 常見問題(FAQ)
- 會誤抽純數字嗎?
- 工具按日期模式(含分隔符與合理範圍)匹配,單獨的「12345」不會誤判;但「2024」這類僅年份會按設定決定是否納入。
- 不同格式能統一嗎?
- 可在輸出選 ISO(YYYY-MM-DD)歸一,方便入庫與比較;展示用可保留原樣。
Formula & Standard References
| Item | Formula / Note | Source / Standard |
|---|---|---|
| Date format | date extraction prefers year month day patterns separated by hyphen or slash | ISO 8601-1:2019, date and time |
| Time zone offset | timestamps carry an offset otherwise they are read as local time | RFC 3339, date and time on the internet |
| Ambiguity | two digit years and day month order are ambiguous and need an explicit convention | ISO 8601-2:2019, extensions |
⚠️ 使用說明與注意事項
- 本工具純前端執行,資料不會上傳到伺服器
- 建議在主流瀏覽器(Chrome/Safari/Firefox/Edge)中使用
- 計算結果僅供參考,請以實際應用場景為準