Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8881195
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T20:17:47+00:00 2026-06-14T20:17:47+00:00

Within Orchard I have a custom content type that includes a DateTime field. I’ve

  • 0

Within Orchard I have a custom content type that includes a DateTime field. I’ve created a rule to send an email when a new content item is submitted. I’m able to include the value of the DateTime field in the email using the following token:

{Content.Fields.MyContentType.MyDateTimeField}

The problem I’m running into is that the date/time value that replaces the token is in UTC and I need it to be in the timezone configured for my Orchard instance.

I see there’s a token for the current date/time that looks like this:

{Date.Local}

But .Local does not seem to be valid on the DateTime field token.

It looks like it wouldn’t be too hard to create a custom token provider to solve for this but before I did that I wanted to make sure I wasn’t missing an easier, existing solution.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T20:17:49+00:00Added an answer on June 14, 2026 at 8:17 pm

    The date token does indeed have a Local subtoken but the problem here is that {Content.Fields.MyContentType.MyDateTimeField} is not a date token, it’s still just the field. You need to get its actual value. If you look at FieldTokens.cs, you’ll see that the date field token has a DateTime token. So {Content.Fields.MyContentType.MyDateTimeField.DateTime.Local} should do the trick I think.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have a page within Orchard CMS, it only has content on it.
Within my ModelForm I have created a dropdown that isn't bound to anything on
Within my code I have list items like this; <div id=content> <ul class=kwicks> <li
Within an application it's possible to have different UIViewController s that need to share
Within a namespace I have a utility class that is only functional to a
Within my Smarty template I have a series of checkboxes that are named region_codes,
In my Orchard site, there is a content type named Product. It has the
We have recently developed a library of classes that are used within an MVC3
So I'm using WCF WebAPI Preview 6 within my application (Orchard CMS). I'm trying
Within Symphony CMS, I want to be able to have an XML document which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.