Skip to main content
Question

Need to print 1st date and last date of current month, any idea?

  • February 21, 2023
  • 7 replies
  • 1544 views

Forum|alt.badge.img+5

I need to print 1st date and last date of current month without any scripting language, please help me with this.

 

Thanks

7 replies

Forum|alt.badge.img+4
  • Navigator | Tier 3
  • 14 replies
  • February 21, 2023

@Raj 2199. Could always use Excel formulas.

Row 2 = formatted as short date.

A2 | =TODAY()

B2 | =EOMONTH(A2,-1)+1

C2 | =EOMONTH(A2,0)


Raul Jaimes
Forum|alt.badge.img+9
  • Navigator | Tier 3
  • 494 replies
  • February 21, 2023

@Raj 2199 

Also you can create a csv with predefined dates.

 

 

 

Regards


Lisa Wingebach
Forum|alt.badge.img+6
  • Navigator | Tier 3
  • 14 replies
  • February 21, 2023

Hi @Raj 2199,

You could do something like this…

 



 

Regards,
Lisa


Forum|alt.badge.img
Lisa Wingebach wrote:

Hi @Raj 2199,

You could do something like this…

 



 

Regards,
Lisa

Hey Lisa, I tried the same but for some reason the subtract datetime does not work properly. When I subtract 1 day from FirstDayOfNextMonth it is showing 02-60-2024 and not 02-29-2024. I am using the Community version


Lisa Wingebach
Forum|alt.badge.img+6
  • Navigator | Tier 3
  • 14 replies
  • February 13, 2024

Hi @Sowndharya Subramanian,

For the Custom format, are you using MM for the month, or mm?  It should be MM. 

mm would be used to get minutes (time), which is possibly why you’re getting the number 60? 

Can you provide a screenshot of your code?


Forum|alt.badge.img
  • Cadet | Tier 2
  • 1 reply
  • June 27, 2024
Lisa Wingebach wrote:

Hi @Raj 2199,

You could do something like this…

 



 

Regards,
Lisa

Hi Lisa, When tried to assign to datetime format it is assigning value as 2009-06-15T13:45:30 -> 6/15/2009 1:45:30 PM format and not the mentioned mm/dd/yyyy format. Could you explain line 3 in detail

 


Forum|alt.badge.img
  • Cadet | Tier 2
  • 1 reply
  • September 16, 2024

You need to choose custom format while assigning.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings