# TIMEVALUE

Spread for WinForms provides advanced software components that support Excel import/export, full cell customization, an extensive calculation engine with over 450 functions and more, all with zero dependencies on Excel.

## Content

This function returns the decimal number representing a particular time in Excel.

## Syntax

TIMEVALUE(*time\_string*)

## Arguments

Specify the time as a text string.

## Remarks

Use this function to convert the time represented by a text string to a decimal number.

## Data Types

Accepts string data. Returns the decimal number that represents the time in Excel.

## Examples

`TIMEVALUE(B18)`
`TIMEVALUE(R18C2)`
`TIMEVALUE("5:29")` gives the result 0.228472
`TIMEVALUE("5:29 PM")` gives the result 0.728472
`TIMEVALUE("17:29")` gives the result 0.728472

## Version Available

This function is available in product version 1.0 or later.

> !type=note
> **Note:** If a user uses LegacyBehaviors.CalculationEngine, TIMEVALUE function will return the DateTime object instead of the serial numeric value.

## See Also

[TIME](/spreadnet/docs/latest/online-formula/formulas-functionsall/formulas-functsTtoZ/FunctionTIME) \| [DATEVALUE](/spreadnet/docs/latest/online-formula/formulas-functionsall/formulas-functsDtoG/FunctionDATEVALUE) \| [Date and Time Functions](/spreadnet/docs/latest/online-formula/formulas-overview/formulas-functs/formulas-functtypes/formulas-functsdatetime)