Custom Date and Time Format Strings

限时加码!20+主流AI编程工具免费用 购周边加赠Coding Plan Lite,Claude Code、Cursor等即刻畅享,学习进阶更高效! 阅读详情

The following table describes the custom date and time format specifiers and displays a result string produced by each format specifier. By default, result strings reflect the formatting conventions of the en-US culture. If a particular format specifier produces a localized result string, the example also notes the culture to which the result string applies. See the Notes section for additional information about using custom date and time format strings.

Format specifier

Description

Examples

"d"

The day of the month, from 1 through 31.

More information: The "d" Custom Format Specifier.

6/1/2009 1:45:30 PM -> 1

6/15/2009 1:45:30 PM -> 15

"dd"

The day of the month, from 01 through 31.

More information: The "dd" Custom Format Specifier.

6/1/2009 1:45:30 PM -> 01

6/15/2009 1:45:30 PM -> 15

"ddd"

The abbreviated name of the day of the week.

More information: The "ddd" Custom Format Specifier.

6/15/2009 1:45:30 PM -> Mon (en-US)

6/15/2009 1:45:30 PM -> Пн (ru-RU)

6/15/2009 1:45:30 PM -> lun. (fr-FR)

"dddd"

The full name of the day of the week.

More information: The "dddd" Custom Format Specifier.

6/15/2009 1:45:30 PM -> Monday (en-US)

6/15/2009 1:45:30 PM -> понедельник (ru-RU)

6/15/2009 1:45:30 PM -> lundi (fr-FR)

"f"

The tenths of a second in a date and time value.

More information: The "f" Custom Format Specifier.

6/15/2009 13:45:30.617 -> 6

6/15/2009 13:45:30.050 -> 0

"ff"

The hundredths of a second in a date and time value.

More information: The "ff" Custom Format Specifier.

6/15/2009 13:45:30.617 -> 61

6/15/2009 13:45:30.005 -> 00

"fff"

The milliseconds in a date and time value.

More information: The "fff" Custom Format Specifier.

6/15/2009 13:45:30.617 -> 617

6/15/2009 13:45:30.0005 -> 000

"ffff"

The ten thousandths of a second in a date and time value.

More information: The "ffff" Custom Format Specifier.

6/15/2009 13:45:30.6175 -> 6175

6/15/2009 13:45:30.00005 -> 0000

"fffff"

The hundred thousandths of a second in a date and time value.

More information: The "fffff" Custom Format Specifier.

6/15/2009 13:45:30.61754 -> 61754

6/15/2009 13:45:30.000005 -> 00000

"ffffff"

The millionths of a second in a date and time value.

More information: The "ffffff" Custom Format Specifier.

6/15/2009 13:45:30.617542 -> 617542

6/15/2009 13:45:30.0000005 -> 000000

"fffffff"

The ten millionths of a second in a date and time value.

More information: The "fffffff" Custom Format Specifier.

6/15/2009 13:45:30.6175425 -> 6175425

6/15/2009 13:45:30.0001150 -> 0001150

"F"

If non-zero, the tenths of a second in a date and time value.

More information: The "F" Custom Format Specifier.

6/15/2009 13:45:30.617 -> 6

6/15/2009 13:45:30.050 -> (no output)

"FF"

If non-zero, the hundredths of a second in a date and time value.

More information: The "FF" Custom Format Specifier.

6/15/2009 13:45:30.617 -> 61

6/15/2009 13:45:30.005 -> (no output)

"FFF"

If non-zero, the milliseconds in a date and time value.

More information: The "FFF" Custom Format Specifier.

6/15/2009 13:45:30.617 -> 617

6/15/2009 13:45:30.0005 -> (no output)

"FFFF"

If non-zero, the ten thousandths of a second in a date and time value.

More information: The "FFFF" Custom Format Specifier.

6/1/2009 13:45:30.5275 -> 5275

6/15/2009 13:45:30.00005 -> (no output)

"FFFFF"

If non-zero, the hundred thousandths of a second in a date and time value.

More information: The "FFFFF" Custom Format Specifier.

6/15/2009 13:45:30.61754 -> 61754

6/15/2009 13:45:30.000005 -> (no output)

"FFFFFF"

If non-zero, the millionths of a second in a date and time value.

More information: The "FFFFFF" Custom Format Specifier.

6/15/2009 13:45:30.617542 -> 617542

6/15/2009 13:45:30.0000005 -> (no output)

"FFFFFFF"

If non-zero, the ten millionths of a second in a date and time value.

More information: The "FFFFFFF" Custom Format Specifier.

6/15/2009 13:45:30.6175425 -> 6175425

6/15/2009 13:45:30.0001150 -> 000115

"g", "gg"

The period or era.

More information: The "g" or "gg" Custom Format Specifier.

6/15/2009 1:45:30 PM -> A.D.

"h"

The hour, using a 12-hour clock from 1 to 12.

More information: The "h" Custom Format Specifier.

6/15/2009 1:45:30 AM -> 1

6/15/2009 1:45:30 PM -> 1

"hh"

The hour, using a 12-hour clock from 01 to 12.

More information: The "hh" Custom Format Specifier.

6/15/2009 1:45:30 AM -> 01

6/15/2009 1:45:30 PM -> 01

"H"

The hour, using a 24-hour clock from 0 to 23.

More information: The "H" Custom Format Specifier.

6/15/2009 1:45:30 AM -> 1

6/15/2009 1:45:30 PM -> 13

"HH"

The hour, using a 24-hour clock from 00 to 23.

More information: The "HH" Custom Format Specifier.

6/15/2009 1:45:30 AM -> 01

6/15/2009 1:45:30 PM -> 13

"K"

Time zone information.

More information: The "K" Custom Format Specifier.

With DateTime values:

6/15/2009 1:45:30 PM, Kind Unspecified ->

6/15/2009 1:45:30 PM, Kind Utc -> Z

6/15/2009 1:45:30 PM, Kind Local -> -07:00 (depends on local computer settings)

With DateTimeOffset values:

6/15/2009 1:45:30 AM -07:00 --> -07:00

6/15/2009 8:45:30 AM +00:00 --> +00:00

"m"

The minute, from 0 through 59.

More information: The "m" Custom Format Specifier.

6/15/2009 1:09:30 AM -> 9

6/15/2009 1:09:30 PM -> 9

"mm"

The minute, from 00 through 59.

More information: The "mm" Custom Format Specifier.

6/15/2009 1:09:30 AM -> 09

6/15/2009 1:09:30 PM -> 09

"M"

The month, from 1 through 12.

More information: The "M" Custom Format Specifier.

6/15/2009 1:45:30 PM -> 6

"MM"

The month, from 01 through 12.

More information: The "MM" Custom Format Specifier.

6/15/2009 1:45:30 PM -> 06

"MMM"

The abbreviated name of the month.

More information: The "MMM" Custom Format Specifier.

6/15/2009 1:45:30 PM -> Jun (en-US)

6/15/2009 1:45:30 PM -> juin (fr-FR)

6/15/2009 1:45:30 PM -> Jun (zu-ZA)

"MMMM"

The full name of the month.

More information: The "MMMM" Custom Format Specifier.

6/15/2009 1:45:30 PM -> June (en-US)

6/15/2009 1:45:30 PM -> juni (da-DK)

6/15/2009 1:45:30 PM -> uJuni (zu-ZA)

"s"

The second, from 0 through 59.

More information: The "s" Custom Format Specifier.

6/15/2009 1:45:09 PM -> 9

"ss"

The second, from 00 through 59.

More information: The "ss" Custom Format Specifier.

6/15/2009 1:45:09 PM -> 09

"t"

The first character of the AM/PM designator.

More information: The "t" Custom Format Specifier.

6/15/2009 1:45:30 PM -> P (en-US)

6/15/2009 1:45:30 PM -> 午 (ja-JP)

6/15/2009 1:45:30 PM -> (fr-FR)

"tt"

The AM/PM designator.

More information: The "tt" Custom Format Specifier.

6/15/2009 1:45:30 PM -> PM (en-US)

6/15/2009 1:45:30 PM -> 午後 (ja-JP)

6/15/2009 1:45:30 PM -> (fr-FR)

"y"

The year, from 0 to 99.

More information: The "y" Custom Format Specifier.

1/1/0001 12:00:00 AM -> 1

1/1/0900 12:00:00 AM -> 0

1/1/1900 12:00:00 AM -> 0

6/15/2009 1:45:30 PM -> 9

"yy"

The year, from 00 to 99.

More information: The "yy" Custom Format Specifier.

1/1/0001 12:00:00 AM -> 01

1/1/0900 12:00:00 AM -> 00

1/1/1900 12:00:00 AM -> 00

6/15/2009 1:45:30 PM -> 09

"yyy"

The year, with a minimum of three digits.

More information: The "yyy" Custom Format Specifier.

1/1/0001 12:00:00 AM -> 001

1/1/0900 12:00:00 AM -> 900

1/1/1900 12:00:00 AM -> 1900

6/15/2009 1:45:30 PM -> 2009

"yyyy"

The year as a four-digit number.

More information: The "yyyy" Custom Format Specifier.

1/1/0001 12:00:00 AM -> 0001

1/1/0900 12:00:00 AM -> 0900

1/1/1900 12:00:00 AM -> 1900

6/15/2009 1:45:30 PM -> 2009

"yyyyy"

The year as a five-digit number.

More information: The "yyyyy" Custom Format Specifier.

1/1/0001 12:00:00 AM -> 00001

6/15/2009 1:45:30 PM -> 02009

"z"

Hours offset from UTC, with no leading zeros.

More information: The "z" Custom Format Specifier.

6/15/2009 1:45:30 PM -07:00 -> -7

"zz"

Hours offset from UTC, with a leading zero for a single-digit value.

More information: The "zz" Custom Format Specifier.

6/15/2009 1:45:30 PM -07:00 -> -07

"zzz"

Hours and minutes offset from UTC.

More information: The "zzz" Custom Format Specifier.

6/15/2009 1:45:30 PM -07:00 -> -07:00

":"

The time separator.

More information: The ":" Custom Format Specifier.

6/15/2009 1:45:30 PM -> : (en-US)

6/15/2009 1:45:30 PM -> . (it-IT)

6/15/2009 1:45:30 PM -> : (ja-JP)

"/"

The date separator.

More Information: The "/" Custom Format Specifier.

6/15/2009 1:45:30 PM -> / (en-US)

6/15/2009 1:45:30 PM -> - (ar-DZ)

6/15/2009 1:45:30 PM -> . (tr-TR)

"string"

'string'

Literal string delimiter.

6/15/2009 1:45:30 PM ("arr:" h:m t) -> arr: 1:45 P

6/15/2009 1:45:30 PM ('arr:' h:m t) -> arr: 1:45 P

%

Defines the following character as a custom format specifier.

More information: Using Single Custom Format Specifiers.

6/15/2009 1:45:30 PM (%h) -> 1

\

The escape character.

6/15/2009 1:45:30 PM (h \h) -> 1 h

Any other character

The character is copied to the result string unchanged.

More information: Using the Escape Character.

6/15/2009 1:45:30 AM (arr hh:mm t) -> arr 01:45 A

The following sections provide additional information about each custom date and time format specifier. Unless otherwise noted, each specifier produces an identical string representation regardless of whether it is used with a DateTime value or a DateTimeOffset value.


Source:http://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx


Anthropic Claude 3.5 归零架构:系统提示压缩与推理时上下文裁剪实战指南 大型语言模型(LLM)的推理稳定性与上下文处理能力,长期受限于外部编排栈(如RAG、Agent路由、自定义工具链)带来的工程复杂性与调试成本。随着模型原生支持system prompt压缩、inference-time context pruning等机制,传统‘中间层’正被折叠进模型推理流——这并非功能增强,而是范式迁移:将多步意图解析、动态上下文关联、原生动作映射等能力内化为模型固有行为。技术价值在于显著降低端到端延迟、提升意图遵循率、消除分布式协调开销;典型应用场景包括金融合同比对、跨文档税务分析、参 阅读详情

相关推荐

MuleSoft企业级AI编排:构建高可靠LLM集成工作流

AI编排(AI Orchestration)是将大语言模型深度融入企业核心业务系统的关键范式,其本质在于解决LLM的语义泛化能力与ERP、CRM等系统刚性数据契约之间的根本矛盾。通过引入上下文注入、多层护栏机制与闭环反馈,AI编排赋予LLM可验证、可审计、可治理的工程化能力。MuleSoft Anypoint Platform凭借开箱即用的企业连接器、内建安全策略与DataWeave驱动的精准上下文处理,成为实现Enterprise LLM Integration的首选中枢——它不替代LLM,而是让LLM真

CHJ_20160630的博客 360

JDK 1.8(Java 8)新特性详解

Java 8(JDK 1.8)是Java发展史上的重要里程碑版本,发布于2014年3月。该版本引入了一系列革命性特性,主要包括:Lambda表达式和函数式接口支持函数式编程;方法引用简化代码;Stream API提供强大的流式数据处理能力;Optional类优雅处理空值;接口支持默认和静态方法;全新的java.time日期时间API;CompletableFuture改进异步编程;集合框架增强(如HashMap红黑树优化);新增Base64支持、Nashorn JavaScript引擎等。这些特性不仅提升了

萧瑟余晖的博客 657

Azure Document Intelligence + Phi-3 Mini 构建高可靠PDF结构化提取系统

PDF文档结构化提取是企业级AI应用的核心基础能力,其本质是将非结构化扫描件或电子PDF转化为可编程处理的JSON数据。技术原理上需协同OCR文本识别与语言模型语义理解:前者提供带空间坐标的原始文本,后者基于领域知识完成字段映射与上下文消歧。Phi-3 mini凭借128K长上下文、4GB低显存占用和多语言技术文档预训练优势,成为Azure云内轻量级推理的理想选择;而Document Intelligence则提供高精度布局分析与合规可控的数据处理边界。该组合在发票解析、医疗报告、报关单等场景中实现99.2

weixin_33834910的博客 444

丰田JIT生产实战:从5S到单件流,如何一步步消除工厂浪费?

本文深入解析丰田JIT(准时生产)体系的实战应用,从5S管理到单件流改造,系统揭示如何逐步消除工厂浪费。通过价值流分析、拉动系统与看板管理等核心方法,帮助企业实现高效生产,提升空间利用率和库存周转率。

weixin_33686714的博客 444

[原创]DateTime在使用 format Custom Date and Time Format Strings时遇到的问题和解决方法...

Please see the following code first: More information about Custom Date and Time Format Strings: http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx#zzSpecifier Date and Time Format Strings ...

weixin_30872499的博客 104

Standard Date and Time Format Strings

Standard Date and Time Format Strings Updated: October2008 A standard date and time format string uses a single standard format specifier to define the text representation of a date and time va...

weixin_34352005的博客 180

js 时间计算

第一步,引入date.format.js,这个JS的作用是将日期转为指定的格式,代码如下 ------------------------- var dateFormat = function () {   var  token = /d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,

小贝de 411

linuk命令行

Linux命令行由shell解析,Bash是默认shell;命令由命令、选项、参数组成;date命令示例展示用法。

weixin_67883187的博客 217

陈千语都能看懂的入门级Linux命令(1)

*假设帝江号的操作系统是Centos 7。 陈千语说:“啊?管理员我也要学帝江号的操作系统吗?” *粗制滥造,请多多包涵喵!

2301_80041579的博客 344

caxlsx_rails核心功能解析:从模板渲染到邮件附件的完整攻略

🚀 作为Rails开发者的终极Excel生成神器,caxlsx_rails为你的Web应用提供了简单快速的Excel模板渲染方案。这个强大的Rails插件基于caxlsx gem,让你能够像处理HTML视图一样轻松创建复杂的Excel文档。无论你是需要生成报表、导出数据还是发送Excel邮件附件,caxlsx_rails都能帮你完美实现! ## 📊 为什么选择caxlsx_rails? c

gitblog_00354的博客 486

Ubuntu 14.04 下 Docker 日志集中管理实战:Fluentd+Elasticsearch 2.x 落地指南

Docker 日志默认以无结构、无元数据、无时间标准化的 JSON 文件形式分散存储,导致运维无法高效检索与分析。其本质是原始字节流,缺乏容器身份标识和业务语义字段,难以支撑故障定位与 SLA 保障。Fluentd 作为轻量级日志处理器,通过多格式解析(如 Nginx、Java 日志)、动态字段提取与容器元信息增强,将非结构化日志转化为 Elasticsearch 可索引的结构化数据资产;Elasticsearch 2.x 因兼容 Ubuntu 14.04 的旧内核、glibc 和 upstart 机制,成

weixin_33892359的博客 452

Claude Skills:模型原生函数调用与企业级能力扩展机制

大模型函数调用(Function Calling)是一种让LLM生成结构化工具请求的能力,其核心原理是模型在推理过程中直接输出符合JSON Schema的函数调用对象,而非自然语言指令。相比RAG(增强知识)和Agent(流程编排),它聚焦于‘执行动作’,提供确定性、低延迟与强可审计性,技术价值在于将业务逻辑压缩为可版本管理的YAML/JSON契约。典型应用场景包括订单状态查询、天气预报集成、合同条款解析等需对接内部系统的企业AI流水线。本文深入解析Claude Skills这一模型原生的Custom Mo

weixin_34059951的博客 412

GuardDog开源软件包安全扫描工具:企业级供应链安全防护架构深度解析

在当今开源软件生态系统中,供应链安全已成为企业面临的最严峻挑战之一。GuardDog作为一款专为识别恶意PyPI、npm、Go模块、RubyGems、GitHub Actions和VSCode扩展而设计的CLI工具,提供了全面的开源软件包安全扫描解决方案。该工具通过深度分析软件包元数据和源代码,帮助开发者在安装依赖前发现潜在威胁,为企业级应用构建坚固的安全防线。 ## 技术挑战与背景分析 开源

gitblog_00683的博客 449

性能测试从入门到精通 JMeter完全指南(下)

成功失败创建 Test Plan添加 Thread Group配置 Thread Group 参数添加 HTTP Request Default添加 HTTP Header Manager添加第一个 HTTP Request添加 View Results Tree运行测试检查结果🎉 基础脚本完成!调试排查 Step 2: 添加 HTTP 请求 Step 3: 添加监听器 5.2 参数化(数据驱动测试) #mermaid-svg-8hfKVHc8BCOyFWH7{font-family:"trebuc

lw的博客 1403

MuleSoft+LangChain企业级AI编排架构实战

AI编排(AI Orchestration)是连接企业遗留系统与大语言模型的关键技术,其核心在于解决数据孤岛、模型推理不确定性与合规审计三重挑战。它并非简单调用API,而是通过分层架构实现语义理解、异步计算与细粒度治理:集成平台(如MuleSoft)专注安全连接、数据聚合与权限管控,AI框架(如LangChain)负责动态工具编排、RAG增强与结构化输出。该模式显著提升端到端延迟稳定性、规则变更效率及审计日志完整性,已广泛应用于销售智能助手、客户流失预警等高价值场景。

weixin_34075268的博客 348

MuleSoft企业级AI编排:构建可审计、可降级、可治理的LLM生产流水线

AI Orchestration(AI编排)是大语言模型从实验走向企业核心业务的关键范式,其本质是在复杂异构系统中实现LLM能力的受控调度与语义对齐。它依托API管理、数据转换、弹性路由与全链路可观测等工程能力,解决低延迟、高可用、强合规与业务语义一致性等硬性约束。技术价值在于将不稳定的LLM封装为可编排、可审计、可熔断的‘智能原子服务’,支撑信贷审批、保险核保、供应链协同等关键场景。本文聚焦MuleSoft作为AI中枢的落地实践,深度解析DataWeave语义编织、多级弹性降级、Prompt-as-a-S

weixin_34115824的博客 356

Elasticsearch入门三基石:映射、分词、查询DSL实战指南

Elasticsearch并非传统数据库,其核心能力源于对非结构化文本的高效索引与检索。理解倒排索引原理是基础,而真正落地的关键在于三大技术支柱:显式映射(Mapping)决定字段类型与行为,避免动态推断导致的数据不一致;分词器(Analysis)控制文本如何被切分与归一,直接影响中文搜索的召回与准确;查询DSL则通过Query/Filter分离实现意图驱动的高性能检索。这些能力共同支撑日志分析、电商搜索、内容推荐等典型应用场景。本文聚焦初学者最易卡点的Mapping设计、IK中文分词调试与Bool查询优化

dienangpiao2051的博客 363

MuleSoft企业级AI编排实战:打通LLM与SAP/CRM/Snowflake

AI编排(AI Orchestration)是实现大模型在企业真实业务中落地的关键技术,其本质是构建可治理、可审计、可集成的智能调度层。它并非替代LLM或LangChain,而是解决身份认证、数据安全、链路追踪等企业级断层问题——例如OAuth 2.0动态授权、字段级数据脱敏、毫秒级Flow Trace。该能力直接支撑销售智能助手、客户挽留分析等高价值场景,使自然语言请求可在2.8秒内横跨Salesforce、SAP、Snowflake等5+系统完成闭环。本文基于MuleSoft Anypoint平台,详解

weixin_34268753的博客 375
上一篇: Msiexec.exe 的命令行选项
下一篇: mysql connection string for net
dnvodcwan
博客等级 码龄24年 18粉丝 44原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值