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 8912499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T04:12:56+00:00 2026-06-15T04:12:56+00:00

I have a date and time stamp that I would like to add the

  • 0

I have a date and time stamp that I would like to add the AM or PM value to. I haven’t found the way to do this. Here is my code:

<target name="updateDate">

    <propertyset id="tdate"></propertyset>

    <tstamp>
        <format property="tdate" pattern="MM-dd-yyyy HH:mm"/>
    </tstamp>

    <echo>Updating build date to: ${tdate}</echo>

    <replaceregexp byline="true">
        <regexp pattern="BUILD_DATE:String\s+=\s+(['|&quot;])([a-zA-Z0-9-:\s]+)(['|&quot;])"/>
        <substitution expression="BUILD_DATE:String = \1${tdate}\3"/>
        <fileset dir="project/src/model">
            <include name="ProjectModel.as"/>
        </fileset>
    </replaceregexp>

</target>
  • 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-15T04:12:57+00:00Added an answer on June 15, 2026 at 4:12 am

    Straight from the documentation:

    a     Am/pm marker    Text    PM
    

    So

    <format property="tdate" pattern="MM-dd-yyyy HH:mm a"/>
    

    Note that this is redundant with HH, since HH prints the hour from 00 to 23. Use hh to get the hour from 01 to 12.

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

Sidebar

Related Questions

I have a little snippet that formats a date for a timestamp like this:
Hi I have a mysql table that looks like so: date time 2009-07-31 02:30
I would like to encode a date/time stamp in each frame of a video
I have a Timestamp field in a WebSQL database that is stored like: /Date(1340420400000)/
I have following code: string date = 13.04.2012; string date2 = (DateTime.Parse(date).AddDays(1)).ToString(); This is
I have an events based table that I would like to produce a query,
I have a date that I get from a server formatted in EST like
I would like to put messages onto a queue with a date/time as a
I have a class that I would like to store specific times in. The
I've got a data set that looks like this: Date<-c(2009-05-1 10:00:00,2009-05-1 10:05:00,2009-05-1 10:10:00, 2009-05-1

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.