---
id: post/yzhums-com/70481
type: post
title: "Dynamics 365 Business Central: How to convert Month Name (Text) to Month Number (Integer)"
summary: Converting a month name text value to its corresponding month number integer is possible using the GetLocalizedMonthToInt method from the standard Type Helper codeunit. This functionality is useful when you need to transform text representations of months like 'January' into numeric values like 1.
tier: community
language: en
tags:
  - month conversion
  - date handling
  - type helper
  - codeunit
  - localization
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-26T06:40:47.594Z"
  flags: []
generated:
  at: "2026-10-26T05:51:10.938Z"
  pipeline: 0.2.0
  prompts:
    extract-post: 1
  input_hash: 29bcc9f3d84779fcd1593f6e57d5b652c9721561f8379042a680a0d6788f30e6
evidence:
  - kind: blog
    url: https://yzhums.com/70481/
    title: "Dynamics 365 Business Central: How to convert Month Name (Text) to Month Number (Integer)"
    date: "2026-02-10"
    commit: null
    t: null
    quote: null
  - kind: blog
    url: https://yzhums.com/70481/
    title: "Dynamics 365 Business Central: How to convert Month Name (Text) to Month Number (Integer)"
    date: "2026-02-10"
    commit: null
    t: null
    quote: a standard method already exists for this. codeunit 10 "Type Helper" -> procedure GetLocalizedMonthToInt
links:
  learn: []
  objects:
    - object/codeunit/10
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  related:
    - to: post/yzhums-com/70931
      title: "Dynamics 365 Business Central: How to add a “TAB” character to a string via AL"
      label: possibly related
      why: both name Codeunit 10 "Type Helper"
      by: code
    - to: post/yzhums-com/74458
      title: "Dynamics 365 Business Central: How to add Filter by item attributes to the Item Ledger Entries page"
      label: possibly related
      why: both name Codeunit 10 "Type Helper"
      by: code
    - to: post/yzhums-com/69896
      title: "Dynamics 365 Business Central: How to add Notes (System Parts) from FactBox to a report"
      label: possibly related
      why: both name Codeunit 10 "Type Helper"
      by: code
    - to: post/yzhums-com/68755
      title: "Dynamics 365 Business Central: How to add or subtract hours from a DateTime field"
      label: possibly related
      why: both name Codeunit 10 "Type Helper"
      by: code
    - to: post/aardvarklabs-blog/2678
      title: "Understanding AL Development: The Type Helper Code Unit"
      label: possibly related
      why: both name Codeunit 10 "Type Helper"
      by: code
post_id: "70481"
source_id: yzhums-com
source_name: Dynamics 365 Lab - Yun Zhu
url: https://yzhums.com/70481/
published_at: "2026-02-10T00:50:17.000Z"
author: Yun Zhu
full_text: false
words: 162
quotes:
  - text: a standard method already exists for this. codeunit 10 "Type Helper" -> procedure GetLocalizedMonthToInt
    why_it_matters: It identifies the exact built-in method and location for solving the month conversion problem without custom development.
code_objects_mentioned:
  - codeunit Type Helper
systems:
  - development
versions_mentioned: []
preview:
  embeddable: true
  frame_url: null
  image: https://yzhums.com/wp-content/uploads/2026/02/Snipaste_2026-02-10_09-47-54.png
  image_alt: null
  image_w: null
  image_h: null
  site_name: Dynamics 365 Lab
  favicon: https://yzhums.com/wp-content/uploads/2020/08/cropped-logo-3-32x32.png
  probed_at: "2026-10-26T06:09:13.904Z"
---

# Dynamics 365 Business Central: How to convert Month Name (Text) to Month Number (Integer)

[Read the post](https://yzhums.com/70481/) · Dynamics 365 Lab - Yun Zhu (Yun Zhu, MVP) · 2026-02-10 · 162 words · tier community · reviewed (checked by Opus)

> Converting a month name text value to its corresponding month number integer is possible using the GetLocalizedMonthToInt method from the standard Type Helper codeunit. This functionality is useful when you need to transform text representations of months like 'January' into numeric values like 1.

## Key points

- Type Helper codeunit provides the built-in GetLocalizedMonthToInt procedure for this conversion
- The method accepts a text parameter containing the month name and returns an integer
- This is a simple, standard approach that requires minimal code implementation
- Useful for scenarios requiring numeric month values from textual inputs

## Quotes

- "a standard method already exists for this. codeunit 10 "Type Helper" -> procedure GetLocalizedMonthToInt" (It identifies the exact built-in method and location for solving the month conversion problem without custom development.)

## AL objects mentioned

As named in the post. A name that matches one object page by exact type and name links to it; the others stay as named.

- [codeunit 10 "Type Helper"](../../objects/codeunit/10.md)

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Dynamics 365 Business Central: How to add a “TAB” character to a string via AL](../../posts/yzhums-com/70931.md) — possibly related: both name Codeunit 10 "Type Helper"
- [Dynamics 365 Business Central: How to add Filter by item attributes to the Item Ledger Entries page](../../posts/yzhums-com/74458.md) — possibly related: both name Codeunit 10 "Type Helper"
- [Dynamics 365 Business Central: How to add Notes (System Parts) from FactBox to a report](../../posts/yzhums-com/69896.md) — possibly related: both name Codeunit 10 "Type Helper"
- [Dynamics 365 Business Central: How to add or subtract hours from a DateTime field](../../posts/yzhums-com/68755.md) — possibly related: both name Codeunit 10 "Type Helper"
- [Understanding AL Development: The Type Helper Code Unit](../../posts/aardvarklabs-blog/2678.md) — possibly related: both name Codeunit 10 "Type Helper"

## Context

- Features: GetLocalizedMonthToInt method, month name to number conversion, localized month handling

Source: Dynamics 365 Lab - Yun Zhu, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.
