---
title: "milliseconds(_:)"
framework: foundation
role: symbol
role_heading: Type Method
path: "foundation/date/formatstyle/symbol/secondfraction/milliseconds(_:)"
---

# milliseconds(_:)

Creates a custom format style representing the milliseconds elapsed in a day.

## Declaration

```swift
static func milliseconds(_ val: Int) -> Date.FormatStyle.Symbol.SecondFraction
```

## Parameters

- `val`: Length of the string representation of the number of milliseconds elapsed in a day.

## Return Value

Return Value Returns the number of milliseconds elapsed in the day.

## See Also

### Modifying a Second Fraction

- [fractional(_:)](foundation/date/formatstyle/symbol/secondfraction/fractional(_:).md)
