YouTip LogoYouTip

Func Dateserial

# VBScript DateSerial Function * * Complete VBScript Reference Manual](#) * * * The DateSerial function returns a Variant of subtype Date representing the specified year, month, and day. ### Syntax DateSerial(year,month,day) | Parameter | Description | | :--- | :--- | | year | Required. A number between 100 and 9999, or a numeric expression. Values between 0 and 99 are interpreted as years in the range 1900–1999. For all other year values, use the full four-digit year. | | month | Required. Any numeric expression. | | day | Required. Any numeric expression. | ## Example ## Example 1 document.write(DateSerial(2010,2,3)) Output: 2/3/2010 [Try It Β»](#) ## Example 2 Subtract 10 days: document.write(DateSerial(2010,2,3-10)) Output: 1/24/2010 [Try It Β»](#) * * Complete VBScript Reference Manual](#) AI is thinking... [](#)(#) (#)[](#) [VolcEngine Ark Coding Plan supports mainstream large models such as Doubao, GLM, DeepSeek, Kimi, MiniMax, etc., with official direct supply for stability and reliability. Β₯9.9/month Activate Now](https://maas.xfyun.cn/modelSquare?ch=maas_lm_l2E)
← Func DatevalueVb Func Datepart β†’